mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
bsd.man.mk allow staging compressed pages
In the DIRDEPS_BUILD we use staging. The staging logic in bsd.man.mk was in the wrong place, shift it and add compressed man pages to the stage set if appropriate. Reviewed by: stevek Differential Revision: https://reviews.freebsd.org/D43238
This commit is contained in:
parent
642ac6015b
commit
4d08b569a0
|
@ -130,22 +130,6 @@ all-man: ${MAN}
|
|||
ZEXT= ${MCOMPRESS_EXT}
|
||||
|
||||
.if defined(MAN) && !empty(MAN)
|
||||
.if ${MK_STAGING_MAN} == "yes"
|
||||
STAGE_TARGETS+= stage_files
|
||||
_mansets:= ${MAN:E:O:u:M*[1-9]:@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)
|
||||
STAGE_SETS+= mlinks
|
||||
STAGE_TARGETS+= stage_links
|
||||
STAGE_LINKS.mlinks:= ${MLINKS:M*.[1-9]:@f@${f:S,^,${MANDIR}${f:E}${MANSUBDIR}/,}@}
|
||||
stage_links.mlinks: ${_mansets:@s@stage_files.$s@}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
CLEANFILES+= ${MAN:T:S/$/${MCOMPRESS_EXT}/g}
|
||||
CLEANFILES+= ${MAN:T:S/$/${CATEXT}${MCOMPRESS_EXT}/g}
|
||||
.for __page in ${MAN}
|
||||
|
@ -185,6 +169,27 @@ _MANLINKS+= ${CATDIR}${_osect}${MANSUBDIR}/${_oname} \
|
|||
.endfor
|
||||
.endif
|
||||
|
||||
.if defined(MAN) && !empty(MAN)
|
||||
.if ${MK_STAGING_MAN} == "yes"
|
||||
STAGE_TARGETS+= stage_files
|
||||
_mansets:= ${MAN:E:O:u:M*[1-9]:@s@man$s@}
|
||||
STAGE_SETS+= ${_mansets}
|
||||
.for _page in ${MAN}
|
||||
stage_files.man${_page:T:E}: ${_page}
|
||||
.if target(${_page}${MCOMPRESS_EXT})
|
||||
stage_files.man${_page:T:E}: ${_page}${MCOMPRESS_EXT}
|
||||
.endif
|
||||
STAGE_DIR.man${_page:T:E}?= ${STAGE_OBJTOP}${MANDIR}${_page:T:E}${MANSUBDIR}
|
||||
.endfor
|
||||
.if !defined(NO_MLINKS) && !empty(MLINKS)
|
||||
STAGE_SETS+= mlinks
|
||||
STAGE_TARGETS+= stage_links
|
||||
STAGE_LINKS.mlinks:= ${MLINKS:M*.[1-9]:@f@${f:S,^,${MANDIR}${f:E}${MANSUBDIR}/,}@}
|
||||
stage_links.mlinks: ${_mansets:@s@stage_files.$s@}
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
||||
maninstall:
|
||||
.if defined(MAN) && !empty(MAN)
|
||||
maninstall: ${MAN}
|
||||
|
|
Loading…
Reference in a new issue