aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-17 03:21:18 -0300
committerEuAndreh <eu@euandre.org>2021-06-17 03:40:03 -0300
commit8c66bcc4d65cfba6f230cc2d52753786a10ef99e (patch)
tree8698963c8e8cd08da3d6e5303d6fc8c36165c466
parentMakefile: Ignore failure when creating ./git-permalink file (diff)
downloadgit-permalink-8c66bcc4d65cfba6f230cc2d52753786a10ef99e.tar.gz
git-permalink-8c66bcc4d65cfba6f230cc2d52753786a10ef99e.tar.xz
Makefile: Use mkdir+cp over install
TIL: install isn't POSIX.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index baf161d..6d800d9 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,8 @@ do_subst = sed \
-e 's:[@]DATE[@]:$(DATE):g'
install: all
- install -m 755 -D git-permalink $(DESTDIR)$(PREFIX)/bin/$(NAME)
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ cp git-permalink $(DESTDIR)$(PREFIX)/bin/$(NAME)
for m in $(manpages); do \
n=$${m##*.}; \
mkdir -p $(DESTDIR)$(MANPREFIX)/man$$n; \