diff options
author | rillig <rillig@pkgsrc.org> | 2007-03-08 23:16:06 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-03-08 23:16:06 +0000 |
commit | 33024986cb6f604f04516bbb127f2b7fb7a921e1 (patch) | |
tree | 574b8e84f8382f6a1e1e4a0bbd5b81674fff94ef /mk/build | |
parent | 197add6321402c380d1f740f592a28d6e3565ce6 (diff) | |
download | pkgsrc-33024986cb6f604f04516bbb127f2b7fb7a921e1.tar.gz |
Moved the build-env target from bsd.pkg.debug.mk to build/build.mk. It
is no longer available to packages that set NO_BUILD.
Added the variable BUILD_ENV_SHELL, since I prefer a comfortable shell
over /bin/sh for interactive work.
Diffstat (limited to 'mk/build')
-rw-r--r-- | mk/build/build.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/build/build.mk b/mk/build/build.mk index 79e9e6f96b2..1cf0a06ad57 100644 --- a/mk/build/build.mk +++ b/mk/build/build.mk @@ -1,8 +1,14 @@ -# $NetBSD: build.mk,v 1.9 2006/11/09 02:53:15 rillig Exp $ +# $NetBSD: build.mk,v 1.10 2007/03/08 23:16:06 rillig Exp $ # # This file defines what happens in the build phase, excluding the # self-test, which is defined in test.mk. # +# Public targets for developers: +# +# build-env: +# Runs an interactive shell (BUILD_ENV_SHELL) in the environment +# that is used for building the package. +# # Package-settable variables: # # BUILD_MAKE_FLAGS is the list of arguments that is passed to the make @@ -138,3 +144,9 @@ pre-build: post-build: @${DO_NADA} .endif + +BUILD_ENV_SHELL?= ${SH} +build-env: .PHONY configure + @${STEP_MSG} "Entering the build environment for ${PKGNAME}" + ${_PKG_SILENT}${_PKG_DEBUG} \ + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${BUILD_ENV_SHELL} |