diff options
author | jlam <jlam> | 2006-06-15 02:24:41 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-06-15 02:24:41 +0000 |
commit | 76ab2113c8602089fdcd0d8f716a3d2a41a92588 (patch) | |
tree | 4e89ebeb8fa8d153a9c0ec08a0bab2b7189ab133 /mk/bsd.pkg.mk | |
parent | 4c3ffdd9448692f463d0c878552a701e166e5955 (diff) | |
download | pkgsrc-76ab2113c8602089fdcd0d8f716a3d2a41a92588.tar.gz |
Allow the standard build target to be overridden by the one generated
if PKG_{FAIL,SKIP}_REASON is set. This fixes the behavior when one
invokes "make build" in a package that sets a fail or skip reason to
stop as soon as the reason is printed.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 2d0c831b6ef..60ccd1a1045 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1851 2006/06/12 16:30:03 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1852 2006/06/15 02:24:41 jlam Exp $ # # This file is in the public domain. # @@ -769,7 +769,7 @@ configure: wrapper .endif # Disable build -.PHONY: build +.PHONY: _build .if defined(NO_BUILD) _build: configure ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${_BUILD_COOKIE} @@ -1227,7 +1227,9 @@ _build: configure acquire-build-lock ${_BUILD_COOKIE} release-build-lock .endif .PHONY: build +.if !target(build) build: pkginstall +.endif .PHONY: test .if !target(test) |