summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-06-06 16:24:54 +0000
committerimp <imp@FreeBSD.org>2006-06-06 16:24:54 +0000
commitf22f333d753b7b85209e5f91eb48830725006440 (patch)
tree24c9e0ae81de9bd7a0ab15646ac6b628abecc170 /Makefile.inc1
parentc4b35c221ae86b6c5fbf99b65a36bc1bf3e0fd52 (diff)
downloadFreeBSD-src-f22f333d753b7b85209e5f91eb48830725006440.zip
FreeBSD-src-f22f333d753b7b85209e5f91eb48830725006440.tar.gz
Create a new target 'buildenvvars'. This target reports the build
environment for cross building (the same one you'd get interactively in make buildenv). This cannot be a simple make -f Makefile.inc1 -V WMAKEENV because in PATH is not set correctly unless one takes a trip through the Makefile/Makefile.inc1 indirection, the logic of which is too large to reproduce outside of Makefiles.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc19
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 6e5bb1e..8619eb7 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -468,6 +468,15 @@ WMAKE_TGTS+= build32
buildworld: ${WMAKE_TGTS}
.ORDER: ${WMAKE_TGTS}
+
+#
+# We need to have this as a target because the indirection between Makefile
+# and Makefile.inc1 causes the correct PATH to be used, rather than a
+# modification of the current environment's PATH.
+#
+buildenvvars:
+ @echo ${WMAKEENV}
+
buildenv:
@echo Entering world for ${TARGET_ARCH}:${TARGET}
@cd ${.CURDIR} && env ${WMAKEENV} sh || true
OpenPOWER on IntegriCloud