make: Create containing directories for manpages if not existent
commit382bc0047d33ada5f4b33cab077aa369eb9cb7f7
authorTobias Klauser <tklauser@distanz.ch>
Mon, 29 Jun 2015 09:11:20 +0000 (29 11:11 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 29 Jun 2015 09:11:20 +0000 (29 11:11 +0200)
treeb6cfe8a829164dd33d04d7c2309f01385535cc40
parent9977ec6012452bfc5053dbc90aed53f55064c86b
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>
Template