aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 3 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 3c3e014..9b1b071 100644
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,7 @@
-EXEC != ls -l | perl -ne ' \
- if (/^-\S*x\s/) { \
- s/.* //; \
- print; \
- $$x{$$_} = 1; \
- } elsif (/^l\S*x\s/) { \
- s/ -> (.*)//; \
- $$d = $$1; \
- s/.* //; \
- push @ln, [$$_ => "$$d\n"] \
- } \
- END { \
- for (@ln) { \
- print $$_->[0] if $$x{$$_->[1]}; \
- } \
- } \
-'
-IEXEC != echo $(EXEC) | sed -E 's,^| ,&/usr/local/bin/,g'
+EXEC != find -H . -follow -type f -maxdepth 1 -perm -111
+IEXEC != echo " $(EXEC)" | sed -E 's, \./, /usr/local/bin/,g'
install:
- install -m 644 *.1 /usr/local/man/man1/
+ install -m 644 *.[1-9] /usr/local/man/man1
install $(EXEC) /usr/local/bin
re! $(IEXEC)