aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-29 17:44:14 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-29 17:44:14 +0200
commit7e5f08a183322d0d4f1f481e2d79bc188c7e133e (patch)
tree9dca8506c256baae102c2eb577f0a945d30b04ae /Makefile
parentdfd72df0ae0166b4c94a17bf8ca18954eff1132d (diff)
downloadxutil-7e5f08a183322d0d4f1f481e2d79bc188c7e133e.tar.gz
Makefile: Support links
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2a0d94f..a783668 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,3 @@
install:
install -m 644 *.1 /usr/local/man/man1/
- install `ls -l | awk '$$1 ~ /^-/ && $$1 ~ /x$$/ {print $$NF}'` /usr/local/bin
+ install `ls -l | perl -ne 'next if not /^[-l]\S*x\s/; s/ -> .*//; s/.* //; print'` /usr/local/bin