commit 339463767600629ae5786089d354ce114fe08bfc parent f5cc4b4efa41250411f5bd0253c8a0e815385cfd Author: Bastien Dejean <nihilhill@gmail.com> Date: Thu, 20 Jun 2013 16:13:45 +0200 Preserve mode via cp's `-p` option Diffstat:
M | Makefile | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile @@ -32,11 +32,9 @@ sxhkd: $(OBJ) install: mkdir -p "$(DESTDIR)$(BINPREFIX)" - cp sxhkd "$(DESTDIR)$(BINPREFIX)" - chmod 755 "$(DESTDIR)$(BINPREFIX)/sxhkd" + cp -p sxhkd "$(DESTDIR)$(BINPREFIX)" mkdir -p "$(DESTDIR)$(MANPREFIX)/man1" - cp sxhkd.1 "$(DESTDIR)$(MANPREFIX)/man1" - chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/sxhkd.1" + cp -p sxhkd.1 "$(DESTDIR)$(MANPREFIX)/man1" uninstall: rm -f $(DESTDIR)$(BINPREFIX)/sxhkd