changeset 560:5b534ad95bfb

added uninstall option in Makefile
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 15 Jul 2014 13:59:03 -0400
parents 806df5f61c03
children ee45c6eb6d49
files Makefile scripts/uninstall-scripts.sh
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Jul 15 01:25:33 2014 -0400
+++ b/Makefile	Tue Jul 15 13:59:03 2014 -0400
@@ -11,8 +11,15 @@
 
 install: cexe
 	@echo "========================================="
+	@echo "Installing for Linux"
+	@echo "========================================="
 	@echo "Copying feature-based tracking executable"
 	@cp bin/feature-based-tracking /usr/local/bin
 	@echo "========================================="
 	@echo "Copying Python scripts"
-	@cp scripts/* /usr/local/bin
\ No newline at end of file
+	@cp scripts/* /usr/local/bin
+
+uninstall:
+	@echo "Uninstalling for Linux"
+	rm /usr/local/bin/feature-based-tracking 
+	@cd scripts && ./uninstall-scripts.sh
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/uninstall-scripts.sh	Tue Jul 15 13:59:03 2014 -0400
@@ -0,0 +1,7 @@
+#!/bin/sh
+installDirname='/usr/local/bin'
+for filename in *
+do
+    echo 'rm '$installDirname/$filename
+    rm $installDirname/$filename
+done
\ No newline at end of file