From 7cb347684c5ce943a7baadae9481c0a9fc353d1b Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 8 Mar 2023 23:13:44 -0800 Subject: install: use -D to create needed directories. For instance, the user might not have a /usr/local/man/man5, in which case install behaves like cp, treating man5 as the name of the file to create. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 23e9477..5095265 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,8 @@ all: pw fixver pw: clean:; rm -f pw install:; install pw $(DESTDIR)/bin/pw; \ - install pw.1 $(DESTDIR)/share/man/man1; \ - install pw-relnotes.5 $(DESTDIR)/share/man/man5 + install -D pw.1 $(DESTDIR)/share/man/man1/pw.1; \ + install -D pw-relnotes.5 $(DESTDIR)/share/man/man5/pw-relnotes.5 define FIXVER sed -e '/^\.TH/s/Version [^"]\+/Version $(PW_VERSION)/' $1 > pw.tmp ; cmp -s $1 pw.tmp && rm pw.tmp || mv pw.tmp $1 -- cgit v1.2.3