summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2004-08-09 11:38:41 +0000
committerHartmut Brandt <harti@FreeBSD.org>2004-08-09 11:38:41 +0000
commit088cf0fb430dc820421baa34e7e8183b838dc8ba (patch)
treece06f2df472d64774890fe49af15bc2a9460c586 /Makefile
parent95798370a19022fd109e362d5ab023da527f402e (diff)
downloadsrc-test2-088cf0fb430dc820421baa34e7e8183b838dc8ba.tar.gz
src-test2-088cf0fb430dc820421baa34e7e8183b838dc8ba.zip
Make make recurse into sub-directories and sub-makes when given
two -n flags. If only one -n flag is given the old behaviour is retained (POLA). In order to make this working for installworld change the IMAKEENV in this case so that the tools are found (we have no temporary installation environment in this case). Submitted by: ru (IMAKEENV part)
Notes
Notes: svn path=/head/; revision=133376
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index a554e29488d9..51bd582efda0 100644
--- a/Makefile
+++ b/Makefile
@@ -126,7 +126,7 @@ cleanworld:
rm -rf ${BW_CANONICALOBJDIR}/*
.endif
# To be safe in this case, fall back to a 'make cleandir'
- @cd ${.CURDIR}; ${_MAKE} cleandir
+ ${_+_}@cd ${.CURDIR}; ${_MAKE} cleandir
.else
-rm -rf ${.OBJDIR}/*
chflags -R 0 ${.OBJDIR}
@@ -138,7 +138,7 @@ cleanworld:
#
${TGTS}:
- @cd ${.CURDIR}; \
+ ${_+_}@cd ${.CURDIR}; \
${_MAKE} ${.TARGET}
# Set a reasonable default
@@ -165,16 +165,16 @@ world: upgrade_checks
@echo "--------------------------------------------------------------"
@echo ">>> Making 'pre-world' target"
@echo "--------------------------------------------------------------"
- @cd ${.CURDIR}; ${_MAKE} pre-world
+ ${_+_}@cd ${.CURDIR}; ${_MAKE} pre-world
.endif
- @cd ${.CURDIR}; ${_MAKE} buildworld
- @cd ${.CURDIR}; ${_MAKE} -B installworld
+ ${_+_}@cd ${.CURDIR}; ${_MAKE} buildworld
+ ${_+_}@cd ${.CURDIR}; ${_MAKE} -B installworld
.if target(post-world)
@echo
@echo "--------------------------------------------------------------"
@echo ">>> Making 'post-world' target"
@echo "--------------------------------------------------------------"
- @cd ${.CURDIR}; ${_MAKE} post-world
+ ${_+_}@cd ${.CURDIR}; ${_MAKE} post-world
.endif
@echo
@echo "--------------------------------------------------------------"
@@ -232,7 +232,7 @@ make: .PHONY
@echo "--------------------------------------------------------------"
@echo ">>> Building an up-to-date make(1)"
@echo "--------------------------------------------------------------"
- @cd ${.CURDIR}/usr.bin/make; \
+ ${_+_}@cd ${.CURDIR}/usr.bin/make; \
${MMAKE} obj && \
${MMAKE} depend && \
${MMAKE} all && \