diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-12 22:03:11 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-12 22:03:11 +0200 |
commit | ac9ae08170243f1cbe31c8664baef02d787f2aa5 (patch) | |
tree | 4010273eb34d925c5ffff912ba3912698954872b | |
parent | 1e095f353ae2ca73133869eb23a5ca43faea4628 (diff) | |
download | xutil-ac9ae08170243f1cbe31c8664baef02d787f2aa5.tar.gz |
Makefile: Add 'uninstall' target
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,13 +1,21 @@ +MAN != ls doc/*.[1-9] EXEC != find -H . -follow -type f -perm -111 ! -path '*/.git/*' +IMAN != echo " $(MAN)" | sed -E 's, doc/, /usr/local/man/man1/,g' IEXEC != echo " $(EXEC)" | sed -E 's, \./([^ ]*/)?, /usr/local/bin/,g' install: @echo Installing man pages... - @install -m 644 doc/*.[1-9] /usr/local/man/man1 + @install -m 644 $(MAN) /usr/local/man/man1 @echo Installing executables... @install $(EXEC) /usr/local/bin @echo Rewriting shebangs... @re! $(IEXEC) +uninstall: + @echo Uninstalling man pages... + @rm $(IMAN) + @echo Uninstalling executables... + @rm $(IEXEC) + build: build */*.c |