mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
LOCAL_MODULES: Allow LOCAL_MODULES="" in src.conf to work
Currently LOCAL_MODULES= works, but LOCAL_MODULES="" causes build errors as .for still has the empty string to loop over. An .if empty prior to the loop was considered, but LOCAL_MODULES has empty quotes at that point and thus, isn't empty. A better solution likely exists, but this floats us by for now...
This commit is contained in:
parent
ef03f57dd2
commit
a3f59fe262
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351799
@ -77,10 +77,12 @@ modules-${target}:
|
||||
${target:S/^reinstall$/install/:S/^clobber$/cleandir/}
|
||||
.endif
|
||||
.for module in ${LOCAL_MODULES}
|
||||
.if !empty(module)
|
||||
@${ECHODIR} "===> ${module} (${target:S/^reinstall$/install/:S/^clobber$/cleandir/})"
|
||||
@cd ${LOCAL_MODULES_DIR}/${module}; ${MKMODULESENV} ${MAKE} \
|
||||
DIRPRFX="${module}/" \
|
||||
${target:S/^reinstall$/install/:S/^clobber$/cleandir/}
|
||||
.endif
|
||||
.endfor
|
||||
.endif
|
||||
.endfor
|
||||
|
Loading…
Reference in New Issue
Block a user