comparison 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
comparison
equal deleted inserted replaced
293:73ac6bec36fe 294:c2e2fed957ed
24 DOCS_VARS_OFF= NO_BUILD=yes 24 DOCS_VARS_OFF= NO_BUILD=yes
25 25
26 .include <bsd.port.options.mk> 26 .include <bsd.port.options.mk>
27 27
28 SRC= ${.CURDIR} 28 SRC= ${.CURDIR}
29
30 MANPAGES8= ${:!${LS} -1 "${.CURDIR}/docs/man/man8"!}
29 31
30 HGCANONICALPATH?= default 32 HGCANONICALPATH?= default
31 HGREVISION= ${:!hg id -R "${SRC}" -q!} 33 HGREVISION= ${:!hg id -R "${SRC}" -q!}
32 HGDATE= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!} 34 HGDATE= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!}
33 HGAUTHOR= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}' | ${TR} ' ' '+'!} 35 HGAUTHOR= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}' | ${TR} ' ' '+'!}
81 .for _ps in 800.local-ipv6-refresh 83 .for _ps in 800.local-ipv6-refresh
82 ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily 84 ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily
83 .endfor 85 .endfor
84 86
85 post-install-DOCS-on: 87 post-install-DOCS-on:
86 .for _mp in local-bsdtools.8 ftjail.8 ftjail-copy-skel.8 fzfs.8 fzfs-mount.8 fzfs-umount.8 88 .for _mp in ${MANPAGES8:R}
87 ${INSTALL_DATA} ${WRKSRC}/docs/_build/man/${_mp} ${STAGEDIR}${LOCALBASE}/man/man8/${_mp} 89 ${INSTALL_DATA} ${WRKSRC}/docs/_build/man/${_mp}.8 ${STAGEDIR}${LOCALBASE}/man/man8/${_mp}.8
88 .endfor 90 .endfor
89 91
90 .include <bsd.port.mk> 92 .include <bsd.port.mk>