summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-07-18 10:43:16 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-07-18 10:44:31 -0400
commit92c558c7749377b1c83f5e6af7f455f60b2fc677 (patch)
tree0d0d180838d48645badc489d070f01ec77879a52 /Makefile
parent2f98bd3487fce5b2654393fffd5bce1b4506d3ec (diff)
Makefile: improve rule for `pbs`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5924f08..d05dba7 100644
--- a/Makefile
+++ b/Makefile
@@ -33,8 +33,7 @@ uninstall: PHONY
# actual file rules
pbs: pbs.in
- sed 's|@pbs-bindir@|$(pbs-bindir)|g' < $< > $@
- chmod 755 $@
+ < $< sed 's|@pbs-bindir@|$(pbs-bindir)|g' | install -m755 /dev/stdin $@
$(DESTDIR)$(pbs-bindir)/%: % | $(DESTDIR)$(pbs-bindir)
cp '$*' '${@D}'