From 382bc0047d33ada5f4b33cab077aa369eb9cb7f7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 29 Jun 2015 11:11:20 +0200 Subject: 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 Signed-off-by: Tobias Klauser --- Template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf