aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Laboissiere <rafael@laboissiere.net>2015-05-09 11:09:35 +0200
committerRafael Laboissiere <rafael@laboissiere.net>2015-05-09 11:09:35 +0200
commit7712e8021e29c80e946bfd2acb9dd7dab1517201 (patch)
treefe3589cf6bec9d9e8c47e786c26b32c7e4dd9691
parentbc3b67956717ad218d2bce5114c491556f62ff2e (diff)
Add rule for uninstalling the sscripts
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 76a8413..f1b67e5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
DESTDIR = /usr/local/bin
INSTALL = install --mode=755
+UNINSTALL = rm -f
SCRIPTS = \
git-multimail \
add-git-user \
@@ -12,3 +13,10 @@ install:
$(INSTALL) $$i $(DESTDIR) ; \
echo "Installed $$i" ; \
done
+
+.PHONY: uninstall
+uninstall:
+ @for i in $(SCRIPTS) ; do \
+ $(UNINSTALL) $(DESTDIR)/$$i ; \
+ echo "Uninstalled $$i" ; \
+ done