From 20bfae8441a6ddb47691229c1baa1d710456a62a Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sat, 26 Feb 2005 22:02:18 +0000 Subject: [PATCH] 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 --- Makefile | 2 +- Makefile.inc1 | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c3ebfdb7f31b..ce7febcfd0f9 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 f6227c77fd61..5a9696510e5c 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}