diff options
author | Warner Losh <imp@FreeBSD.org> | 2006-06-06 16:24:54 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2006-06-06 16:24:54 +0000 |
commit | 621e4ae168ef6121b27ffd1641ec114707c0c88d (patch) | |
tree | 24c9e0ae81de9bd7a0ab15646ac6b628abecc170 /Makefile.inc1 | |
parent | 5f467a3bb686df5d0018441b9693070712adf0e2 (diff) | |
download | src-test-621e4ae168ef6121b27ffd1641ec114707c0c88d.tar.gz src-test-621e4ae168ef6121b27ffd1641ec114707c0c88d.zip |
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.
Notes
Notes:
svn path=/head/; revision=159349
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 6e5bb1e6dff69..8619eb7527813 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 |