1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-20 15:43:16 +00:00

Handle multiple sections in MLINKS

This commit is contained in:
Simon J. Gerraty 2015-05-31 07:16:31 +00:00
parent 09cdd180a2
commit 8bf4a1b89c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=283803

View File

@ -137,7 +137,9 @@ 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}/,}
.for __section in ${MLINKS:E:O:u}
STAGE_LINKS.man${__section}:= ${MLINKS:M*.${__section}:S,^,${MANDIR}${__section}${MANSUBDIR}/,}
.endfor
.endif
.endif