Drop install -D flag after acb0f64a7b

On DragonFly, FreeBSD and NetBSD -Dm644 treats m644 as destdir, so
install(1) keeps executable bit on manpages and pkg-config file.

$ make -s install DESTDIR=/tmp/foo
$ find /tmp/foo -type f -ls | awk '{ print $3, $NF }'
-rwxr-xr-x /tmp/foo/usr/local/bin/scdoc
-rwxr-xr-x /tmp/foo/usr/local/lib/pkgconfig/scdoc.pc
-rwxr-xr-x /tmp/foo/usr/local/share/man/man5/scdoc.5
-rwxr-xr-x /tmp/foo/usr/local/share/man/man1/scdoc.1
master
Jan Beich 6 years ago committed by Drew DeVault
parent d7a1f4a090
commit 2fc5114fe2
  1. 8
      Makefile

@ -45,10 +45,10 @@ clean:
install: all
mkdir -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man5 $(PCDIR)
install -Dm755 scdoc $(BINDIR)/scdoc
install -Dm644 scdoc.1 $(MANDIR)/man1/scdoc.1
install -Dm644 scdoc.5 $(MANDIR)/man5/scdoc.5
install -Dm644 scdoc.pc $(PCDIR)/scdoc.pc
install -m755 scdoc $(BINDIR)/scdoc
install -m644 scdoc.1 $(MANDIR)/man1/scdoc.1
install -m644 scdoc.5 $(MANDIR)/man5/scdoc.5
install -m644 scdoc.pc $(PCDIR)/scdoc.pc
check: scdoc scdoc.1 scdoc.5
@find test -perm -111 -exec '{}' \;

Loading…
Cancel
Save