Subject: pkgviews and *-install targets in Makefiles
To: None <>
From: Ossi Herrala <>
List: tech-pkg
Date: 02/03/2004 13:42:19
For example graphics/mng is using post-install target in Makefile to
install documentation and man pages. Installation of that package fails
when using pkgviews because post-install target doesn't create all

When using pkgviews it seems to be important to create _all_ directories
in *-install targets before trying to install files. For example
graphics/mng installs cleanly after applying this:

+       ${INSTALL_DATA_DIR} ${PREFIX}/man/man3
+       ${INSTALL_DATA_DIR} ${PREFIX}/man/man5
        cd ${WRKSRC}/doc && \
                ${INSTALL_DATA} Plan1.png Plan2.png libmng.txt ${DOCDIR}
        cd ${WRKSRC}/doc/man && \

This was first pkg I found to have this problem but there might be even
more. What would be best practise to fix this for all broken packages?
Maybe INSTALL_* commands could call INSTALL_DATA_DIR before installing
files if directories are missing?

Ossi Herrala, OH8HUB
PGP key ID:  0x78CD0337
Fingerprint: D343 F9C4 C739 DFFF F619  6170 8D28 8189 78CD 0337