Ensure that build-tools end up in the object directory different

from the source directory.  (This mostly affects the RELENG_4's
``make release'' release.5 target, where "rtermcap" build-tool
for release/sysinstall ends up in the source directory and later
steps of release.5 wipe it out.)

Spotted by:	jhay
This commit is contained in:
Ruslan Ermilov 2003-02-24 20:09:16 +00:00
parent e426ee5d51
commit 2ff31e0d81
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111439

View File

@ -660,7 +660,9 @@ build-tools:
${_libroken4} ${_libkrb5} lib/libncurses ${_share} \
${_aicasm} usr.bin/awk usr.bin/file usr.sbin/sysinstall
${ECHODIR} "===> ${_tool}"; \
cd ${.CURDIR}/${_tool}; ${MAKE} DIRPRFX=${_tool}/ build-tools
cd ${.CURDIR}/${_tool}; \
${MAKE} DIRPRFX=${_tool}/ obj; \
${MAKE} DIRPRFX=${_tool}/ build-tools
.endfor
#