From 2ff31e0d8141559213ec11efa2990de14c2b9d5c Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 24 Feb 2003 20:09:16 +0000 Subject: [PATCH] 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 --- Makefile.inc1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 3b8c83865dfc..56ec42ff8ae4 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -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 #