aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-12 13:24:49 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-12 13:27:07 +0200
commit03d827e2fbc409ef97829f25b8eeca5204f81a3c (patch)
tree6099f0feb9adf3425fba87549b164043e18bd0c7 /Makefile
parent45cddd072119c5abd7ec076cf28d51ee01f125b7 (diff)
downloadxutil-03d827e2fbc409ef97829f25b8eeca5204f81a3c.tar.gz
Re-organize files
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)