diff Makefile @ 294:c2e2fed957ed

- Compute a dynmic list of manual pages - Move the sources of the manual pages into a section-specific subdir
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 18 Sep 2022 15:32:22 +0200
parents 73ac6bec36fe
children 61c6479221fc
line wrap: on
line diff
--- a/Makefile	Sun Sep 18 14:47:41 2022 +0200
+++ b/Makefile	Sun Sep 18 15:32:22 2022 +0200
@@ -27,6 +27,8 @@
 
 SRC=		${.CURDIR}
 
+MANPAGES8=	${:!${LS} -1 "${.CURDIR}/docs/man/man8"!}
+
 HGCANONICALPATH?=	default
 HGREVISION=	${:!hg id -R "${SRC}" -q!}
 HGDATE=		${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!}
@@ -83,8 +85,8 @@
 .endfor
 
 post-install-DOCS-on:
-.for _mp in local-bsdtools.8 ftjail.8 ftjail-copy-skel.8 fzfs.8 fzfs-mount.8 fzfs-umount.8
-	${INSTALL_DATA} ${WRKSRC}/docs/_build/man/${_mp} ${STAGEDIR}${LOCALBASE}/man/man8/${_mp}
+.for _mp in ${MANPAGES8:R}
+	${INSTALL_DATA} ${WRKSRC}/docs/_build/man/${_mp}.8 ${STAGEDIR}${LOCALBASE}/man/man8/${_mp}.8
 .endfor
 
 .include <bsd.port.mk>