summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpenser Truex <truex@equwal.com>2021-01-21 11:50:09 -0800
committerJoey Hess <joeyh@joeyh.name>2021-01-21 16:12:44 -0400
commit54cb31ec6086f9db1c5f76ff2a1017cf272b320a (patch)
treef3574696774d4741b411044e3af677f626cbc0c1
parentc3261f4190c3803177b6c50ec43fd302171dd48e (diff)
downloadmoreutils-54cb31ec6086f9db1c5f76ff2a1017cf272b320a.tar.gz
Add uninstall make recipe
I was thinking about using my package manager instead of managing the source myself, but that would have meant manually unlinking all the files!
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1e92f61..01db97a 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,10 @@ install:
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
+uninstall:
+ for i in $(BINS) $(PERLSCRIPTS); do rm -f $(DESTDIR)$(PREFIX)/bin/$$i; done
+ for i in $(MANS); do rm -f $(DESTDIR)$(PREFIX)/share/man/man1/$$i; done
+
check: isutf8
./is_utf8/test.sh