aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-08 23:13:44 -0800
committerKaz Kylheku <kaz@kylheku.com>2023-03-08 23:13:44 -0800
commit7cb347684c5ce943a7baadae9481c0a9fc353d1b (patch)
tree31ad32c19b264c80aca9844ad114c055d9a5f616
parent46bc4823785cf9b19661ec347c9530c7bbfb8eaf (diff)
downloadpw-7cb347684c5ce943a7baadae9481c0a9fc353d1b.tar.gz
pw-7cb347684c5ce943a7baadae9481c0a9fc353d1b.tar.bz2
pw-7cb347684c5ce943a7baadae9481c0a9fc353d1b.zip
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.
-rw-r--r--Makefile4
1 files 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