summaryrefslogtreecommitdiff
path: root/mk/configure
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-06 22:29:52 +0000
committerjlam <jlam@pkgsrc.org>2006-07-06 22:29:52 +0000
commit77c9a4ab0c2d5a8ab5df3632990204aea936dded (patch)
tree86e01d40e2b6fbd8f12d013ad3e7e680b240efb2 /mk/configure
parentb89cac11b2b339dd20f911926bc392829042200a (diff)
downloadpkgsrc-77c9a4ab0c2d5a8ab5df3632990204aea936dded.tar.gz
The cookie files are indirectly made using *-cookie targets, so verify
that they are never being created more than once by inserting a check into the *-cookie targets.
Diffstat (limited to 'mk/configure')
-rw-r--r--mk/configure/bsd.configure.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/configure/bsd.configure.mk b/mk/configure/bsd.configure.mk
index a29370c8190..fba595a90bc 100644
--- a/mk/configure/bsd.configure.mk
+++ b/mk/configure/bsd.configure.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.configure.mk,v 1.3 2006/07/05 22:21:02 jlam Exp $
+# $NetBSD: bsd.configure.mk,v 1.4 2006/07/06 22:29:52 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to configuring packages for building.
@@ -38,5 +38,6 @@ configure: wrapper configure-cookie
###
.PHONY: configure-cookie
configure-cookie:
+ ${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_CONFIGURE_COOKIE} || ${FALSE}
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_CONFIGURE_COOKIE:H}
${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${PKGNAME} > ${_CONFIGURE_COOKIE}