_worldtmp: Fix some sub-makes not working with make -n

This commit is contained in:
Bryan Drewery 2021-08-17 12:06:14 -07:00
parent d75b0870e5
commit a3ddd7c92b

View File

@ -1046,11 +1046,11 @@ _worldtmp: .PHONY
@touch ${WORLDTMP}/${.TARGET}
# We can't use mtree to create the worldtmp directories since it may not be
# available on the target system (this happens e.g. when building on non-FreeBSD)
cd ${.CURDIR}/tools/build; \
${_+_}cd ${.CURDIR}/tools/build; \
${MAKE} DIRPRFX=tools/build/ DESTDIR=${WORLDTMP}/legacy installdirs
# In order to build without inheriting $PATH we need to add symlinks to the host
# tools in $WORLDTMP for the tools that we don't build during bootstrap-tools
cd ${.CURDIR}/tools/build; \
${_+_}cd ${.CURDIR}/tools/build; \
${MAKE} DIRPRFX=tools/build/ DESTDIR=${WORLDTMP}/legacy host-symlinks
_legacy: