pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Allow the standard build target to be overridden by...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3004f4a985d
branches:  trunk
changeset: 514608:e3004f4a985d
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jun 15 02:24:41 2006 +0000

description:
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:

 mk/bsd.pkg.mk |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r cfcc0f55783f -r e3004f4a985d mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Thu Jun 15 01:45:54 2006 +0000
+++ b/mk/bsd.pkg.mk     Thu Jun 15 02:24:41 2006 +0000
@@ -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 @@
 .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 @@
 .endif
 
 .PHONY: build
+.if !target(build)
 build: pkginstall
+.endif
 
 .PHONY: test
 .if !target(test)



Home | Main Index | Thread Index | Old Index