Stage man pages.

This commit is contained in:
Simon J. Gerraty 2015-05-31 03:13:24 +00:00
parent 58073855a4
commit 09cdd180a2

View File

@ -127,6 +127,20 @@ _manpages: ${MAN}
ZEXT= ${MCOMPRESS_EXT}
.if defined(MAN) && !empty(MAN)
.if ${MK_STAGING}
staging: stage_files
_mansets:= ${MAN:E:O:u:@s@man$s@}
STAGE_SETS+= ${_mansets}
.for _page in ${MAN}
stage_files.man${_page:T:E}: ${_page}
STAGE_DIR.man${_page:T:E}?= ${STAGE_OBJTOP}${MANDIR}${_page:T:E}${MANSUBDIR}
.endfor
.if !empty(MLINKS)
staging: stage_links
STAGE_LINKS.${_mansets:[1]} := ${MLINKS:S,^,${MANDIR}${_mansets:[1]:S,man,,}${MANSUBDIR}/,}
.endif
.endif
CLEANFILES+= ${MAN:T:S/$/${MCOMPRESS_EXT}/g}
CLEANFILES+= ${MAN:T:S/$/${CATEXT}${MCOMPRESS_EXT}/g}
.for __page in ${MAN}