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

Bryan Drewery bdrewery at FreeBSD.org
Tue Aug 17 19:07:07 UTC 2021


The branch main has been updated by bdrewery:

URL: https://cgit.FreeBSD.org/src/commit/?id=a3ddd7c92b9947ac4518fb0b55c2275422d0d627

commit a3ddd7c92b9947ac4518fb0b55c2275422d0d627
Author:     Bryan Drewery <bdrewery at FreeBSD.org>
AuthorDate: 2021-08-17 19:06:14 +0000
Commit:     Bryan Drewery <bdrewery at FreeBSD.org>
CommitDate: 2021-08-17 19:06:40 +0000

    _worldtmp: Fix some sub-makes not working with make -n
---
 Makefile.inc1 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.inc1 b/Makefile.inc1
index 2b631c2311f0..9209f0ef053c 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -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:


More information about the dev-commits-src-all mailing list