diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | Makefile.inc1 | 9 |
2 files changed, 12 insertions, 3 deletions
@@ -68,9 +68,9 @@ # developer convenience only. They are intentionally not documented and # completely subject to change without notice. # -TGTS= all all-man buildenv buildkernel buildworld check-old checkdpadd \ - clean cleandepend cleandir delete-old delete-old-libs depend \ - distribute distributeworld distrib-dirs distribution doxygen \ +TGTS= all all-man buildenv buildenvvars buildkernel buildworld check-old \ + checkdpadd clean cleandepend cleandir delete-old delete-old-libs \ + depend distribute distributeworld distrib-dirs distribution doxygen \ everything hierarchy install installcheck installkernel \ installkernel.debug reinstallkernel reinstallkernel.debug \ installworld kernel-toolchain libraries lint maninstall \ 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 |