From d518b52c8e3aac0d181ae148448437df8a08161d Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 15 Jun 2006 02:24:41 +0000 Subject: 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. --- mk/bsd.pkg.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mk/bsd.pkg.mk') 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) -- cgit v1.2.3