summaryrefslogtreecommitdiff
path: root/mk/configure/bsd.configure.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/configure/bsd.configure.mk')
-rw-r--r--mk/configure/bsd.configure.mk15
1 files changed, 9 insertions, 6 deletions
diff --git a/mk/configure/bsd.configure.mk b/mk/configure/bsd.configure.mk
index 901954186fe..a29370c8190 100644
--- a/mk/configure/bsd.configure.mk
+++ b/mk/configure/bsd.configure.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.configure.mk,v 1.2 2006/07/05 09:08:35 jlam Exp $
+# $NetBSD: bsd.configure.mk,v 1.3 2006/07/05 22:21:02 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to configuring packages for building.
@@ -20,12 +20,15 @@ _CONFIGURE_COOKIE= ${WRKDIR}/.configure_done
### configure is a public target to configure the software for building.
###
.PHONY: configure
-.if defined(NO_CONFIGURE)
-. if !target(configure)
-configure: patch configure-cookie
-. endif
-.else
+.if !defined(NO_CONFIGURE)
. include "${PKGSRCDIR}/mk/configure/configure.mk"
+.elif !target(configure)
+. if exists(${_CONFIGURE_COOKIE})
+configure:
+ @${DO_NADA}
+. else
+configure: wrapper configure-cookie
+. endif
.endif
######################################################################