summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2013-07-06 00:13:08 +0000
committersjg <sjg@FreeBSD.org>2013-07-06 00:13:08 +0000
commit2d1ac4aa3e8603f35cda3e09bee166515470d35a (patch)
tree968e18cd1c12b57c6e89f0ccc82bcce26d7e4f0e /Makefile.inc1
parent7dc297170af5eabf1057a01c6c01381ea1d9c381 (diff)
downloadFreeBSD-src-2d1ac4aa3e8603f35cda3e09bee166515470d35a.zip
FreeBSD-src-2d1ac4aa3e8603f35cda3e09bee166515470d35a.tar.gz
Sprinkle some .MAKE magic
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc126
1 files changed, 13 insertions, 13 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 64a4b91..87949fb 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1237,7 +1237,7 @@ _kerberos5_bootstrap_tools= \
# Please document (add comment) why something is in 'bootstrap-tools'.
# Try to bound the building of the bootstrap-tool to just the
# FreeBSD versions that need the tool built at this stage of the build.
-bootstrap-tools:
+bootstrap-tools: .MAKE
.for _tool in \
${_clang_tblgen} \
${_kerberos5_bootstrap_tools} \
@@ -1290,7 +1290,7 @@ _gcc_tools= gnu/usr.bin/cc/cc_tools
_rescue= rescue/rescue
.endif
-build-tools:
+build-tools: .MAKE
.for _tool in \
bin/csh \
bin/sh \
@@ -1352,7 +1352,7 @@ _cc= gnu/usr.bin/cc
.endif
.endif
-cross-tools:
+cross-tools: .MAKE
.for _tool in \
${_clang_libs} \
${_clang} \
@@ -1383,12 +1383,12 @@ hierarchy hier:
# interdependencies (__L) are built automatically by the
# ${.CURDIR}/tools/make_libdeps.sh script.
#
-libraries:
- cd ${.CURDIR}; \
- ${MAKE} -f Makefile.inc1 _prereq_libs; \
- ${MAKE} -f Makefile.inc1 _startup_libs; \
- ${MAKE} -f Makefile.inc1 _prebuild_libs; \
- ${MAKE} -f Makefile.inc1 _generic_libs;
+libraries: .MAKE
+ cd ${.CURDIR} && \
+ ${MAKE} -f Makefile.inc1 _prereq_libs && \
+ ${MAKE} -f Makefile.inc1 _startup_libs && \
+ ${MAKE} -f Makefile.inc1 _prebuild_libs && \
+ ${MAKE} -f Makefile.inc1 _generic_libs
#
# static libgcc.a prerequisite for shared libc
@@ -1542,7 +1542,7 @@ lib/libradius__L: lib/libmd__L
.endif
.for _lib in ${_prereq_libs}
-${_lib}__PL: .PHONY
+${_lib}__PL: .PHONY .MAKE
.if exists(${.CURDIR}/${_lib})
${_+_}@${ECHODIR} "===> ${_lib} (obj,depend,all,install)"; \
cd ${.CURDIR}/${_lib} && \
@@ -1554,7 +1554,7 @@ ${_lib}__PL: .PHONY
.endfor
.for _lib in ${_startup_libs} ${_prebuild_libs:Nlib/libpam} ${_generic_libs}
-${_lib}__L: .PHONY
+${_lib}__L: .PHONY .MAKE
.if exists(${.CURDIR}/${_lib})
${_+_}@${ECHODIR} "===> ${_lib} (obj,depend,all,install)"; \
cd ${.CURDIR}/${_lib} && \
@@ -1568,7 +1568,7 @@ ${_lib}__L: .PHONY
# libpam is special: we need to build static PAM modules before
# static PAM library, and dynamic PAM library before dynamic PAM
# modules.
-lib/libpam__L: .PHONY
+lib/libpam__L: .PHONY .MAKE
${_+_}@${ECHODIR} "===> lib/libpam (obj,depend,all,install)"; \
cd ${.CURDIR}/lib/libpam && \
${MAKE} DIRPRFX=lib/libpam/ obj && \
@@ -1583,7 +1583,7 @@ _generic_libs: ${_generic_libs:S/$/__L/}
.for __target in all clean cleandepend cleandir depend includes obj
.for entry in ${SUBDIR}
-${entry}.${__target}__D: .PHONY
+${entry}.${__target}__D: .PHONY .MAKE
${_+_}@set -e; if test -d ${.CURDIR}/${entry}.${MACHINE_ARCH}; then \
${ECHODIR} "===> ${DIRPRFX}${entry}.${MACHINE_ARCH} (${__target})"; \
edir=${entry}.${MACHINE_ARCH}; \
OpenPOWER on IntegriCloud