aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 9b1b071..f8d23b4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
-EXEC != find -H . -follow -type f -maxdepth 1 -perm -111
-IEXEC != echo " $(EXEC)" | sed -E 's, \./, /usr/local/bin/,g'
+EXEC != find -H . -follow -type f -perm -111 ! -path '*/.git/*'
+IEXEC != echo " $(EXEC)" | sed -E 's, \./([^ ]*/)?, /usr/local/bin/,g'
install:
- install -m 644 *.[1-9] /usr/local/man/man1
- install $(EXEC) /usr/local/bin
- re! $(IEXEC)
+ @echo Installing man pages...
+ @install -m 644 doc/*.[1-9] /usr/local/man/man1
+ @echo Installing executables...
+ @install $(EXEC) /usr/local/bin
+ @echo Rewriting shebangs...
+ @re! $(IEXEC)