commit 2fc5114fe2156f4e21e8cd0cfc3d602fcb5a8c2b
parent d7a1f4a090e07a09249e789770b4f53b0011f14d
Author: Jan Beich <jbeich@FreeBSD.org>
Date: Sat, 2 Mar 2019 01:41:16 +0100
Drop install -D flag after acb0f64a7b73
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
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/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 '{}' \;