summaryrefslogtreecommitdiff
path: root/Template
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-06-29 11:11:20 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-06-29 11:11:20 +0200
commit382bc0047d33ada5f4b33cab077aa369eb9cb7f7 (patch)
treeb6cfe8a829164dd33d04d7c2309f01385535cc40 /Template
parent9977ec6012452bfc5053dbc90aed53f55064c86b (diff)
make: Create containing directories for manpages if not existent
When installing to the default DESTDIR /usr/local with non existent /usr/local/share/man/man8 (or any subpath of it), the installation of manpages fails with e.g. install: cannot create regular file `/usr/local/share/man/man8/netsniff-ng.8.gz': No such file or directory make: *** [netsniff-ng_do_install] Error 1 Thus, create any leading, non-existent directories by using the INST instead of the INSTX command which will call install -d on the path. Reported-by: James Burnett <James.Burnett@geant.org> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Template')
-rw-r--r--Template2
1 files changed, 1 insertions, 1 deletions
diff --git a/Template b/Template
index 3410769..7144981 100644
--- a/Template
+++ b/Template
@@ -10,7 +10,7 @@ define TOOL_templ
$(1)_do_install:
$(Q)$$(call INSTX,$(1)/$(1),$$(DESTDIR)$$(SBINDIR))
$(Q)$(GZIP) $(1).8 > $(1)/$(1).8.gz
- $(Q)$$(call INSTX,$(1)/$(1).8.gz,$$(DESTDIR)$$(MAN8DIR))
+ $(Q)$$(call INST,$(1)/$(1).8.gz,$$(DESTDIR)$$(MAN8DIR))
$(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(DESTDIR)$$(ETCDIRE));)
$(1)_install: $(1)_do_install $(1)_post_install
$(1)_uninstall: $(1)_uninstall_custom