diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-03-08 23:13:44 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-03-08 23:13:44 -0800 |
commit | 7cb347684c5ce943a7baadae9481c0a9fc353d1b (patch) | |
tree | 31ad32c19b264c80aca9844ad114c055d9a5f616 | |
parent | 46bc4823785cf9b19661ec347c9530c7bbfb8eaf (diff) | |
download | pw-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |