summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-02-26 22:02:18 +0000
committerru <ru@FreeBSD.org>2005-02-26 22:02:18 +0000
commitdc4d1e599e8f6250cde0a29e4a34b09a8a1622fb (patch)
tree326e689acd4c01bfa5f46c21802aa5462b52c00b
parent8f4d38ef58ab235c125d2a9161a90fe93e09b21b (diff)
downloadFreeBSD-src-dc4d1e599e8f6250cde0a29e4a34b09a8a1622fb.zip
FreeBSD-src-dc4d1e599e8f6250cde0a29e4a34b09a8a1622fb.tar.gz
Added the "buildenv" target, for developers only!
CAVEAT: if you run tcsh(1) from within this target, this will reset your PATH making this target mostly useless. Careful! Submitted by: jmg, ru
-rw-r--r--Makefile2
-rw-r--r--Makefile.inc14
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c3ebfdb..ce7febc 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@
# developer convenience only. They are intentionally not documented and
# completely subject to change without notice.
#
-TGTS= all all-man buildkernel buildworld checkdpadd clean \
+TGTS= all all-man buildenv buildkernel buildworld checkdpadd clean \
cleandepend cleandir depend distribute distributeworld everything \
hierarchy install installcheck installkernel installkernel.debug\
reinstallkernel reinstallkernel.debug installworld \
diff --git a/Makefile.inc1 b/Makefile.inc1
index f6227c7..5a96965 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -457,6 +457,10 @@ WMAKE_TGTS+= build32
buildworld: ${WMAKE_TGTS}
.ORDER: ${WMAKE_TGTS}
+buildenv:
+ @echo Entering world for ${TARGET_ARCH}:${TARGET}
+ @cd ${.CURDIR} && env ${WMAKEENV} sh || true
+
TOOLCHAIN_TGTS= ${WMAKE_TGTS:N_depend:Neverything}
toolchain: ${TOOLCHAIN_TGTS}
kernel-toolchain: ${TOOLCHAIN_TGTS:N_includes:N_libraries}
OpenPOWER on IntegriCloud