mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 15:52:40 -04:00
bsd.man.mk guard against empty vars in MLINKS
share/man/man4/Makefile adds a number of variables to MAN and MLINKS, which are only set for certain architectures. The empty variables wreak havoc when := is used. Add :M*.[1-9] to MLINKS reference for STAGE_LINKS.mlinks to avoid invalid results. Reviewed by: stevek
This commit is contained in:
parent
7530de77f5
commit
ea9a7058f9
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ STAGE_DIR.man${_page:T:E}?= ${STAGE_OBJTOP}${MANDIR}${_page:T:E}${MANSUBDIR}
|
|||
.if !empty(MLINKS)
|
||||
STAGE_SETS+= mlinks
|
||||
STAGE_TARGETS+= stage_links
|
||||
STAGE_LINKS.mlinks:= ${MLINKS:@f@${f:S,^,${MANDIR}${f:E}${MANSUBDIR}/,}@}
|
||||
STAGE_LINKS.mlinks:= ${MLINKS:M*.[1-9]:@f@${f:S,^,${MANDIR}${f:E}${MANSUBDIR}/,}@}
|
||||
stage_links.mlinks: ${_mansets:@s@stage_files.$s@}
|
||||
.endif
|
||||
.endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue