summaryrefslogtreecommitdiff
path: root/mk/build
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-30 18:54:40 +0000
committerrillig <rillig@pkgsrc.org>2007-11-30 18:54:40 +0000
commit3db56436228802847c22441b7bf6701ca4df91fb (patch)
tree8fd345647b9f1db25c98aa72b114f0f71b4091ce /mk/build
parent15544482ee7747deef09ce13f7affca54c405572 (diff)
downloadpkgsrc-3db56436228802847c22441b7bf6701ca4df91fb.tar.gz
Since the "build" target is run inside the pkgsrc barrier, "build-env"
gets the same treatment.
Diffstat (limited to 'mk/build')
-rw-r--r--mk/build/build.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/build/build.mk b/mk/build/build.mk
index 6bd0cbb8652..b8b15cb02d3 100644
--- a/mk/build/build.mk
+++ b/mk/build/build.mk
@@ -1,4 +1,4 @@
-# $NetBSD: build.mk,v 1.13 2007/06/13 20:34:48 rillig Exp $
+# $NetBSD: build.mk,v 1.14 2007/11/30 18:54:40 rillig Exp $
#
# This file defines what happens in the build phase, excluding the
# self-test, which is defined in test.mk.
@@ -159,7 +159,11 @@ post-build:
.endif
BUILD_ENV_SHELL?= ${SH}
+.if defined(_PKGSRC_BARRIER)
build-env: .PHONY configure
@${STEP_MSG} "Entering the build environment for ${PKGNAME}"
${_PKG_SILENT}${_PKG_DEBUG} \
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${BUILD_ENV_SHELL}
+.else
+build-env: barrier
+.endif