summaryrefslogtreecommitdiff
path: root/mk/depends
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-06 22:29:52 +0000
committerjlam <jlam>2006-07-06 22:29:52 +0000
commitdc7af346aac47e74017fb3747b3d76a04373d244 (patch)
tree86e01d40e2b6fbd8f12d013ad3e7e680b240efb2 /mk/depends
parent90ab95f190c275a87ab8fd05386d77758eba31e3 (diff)
downloadpkgsrc-dc7af346aac47e74017fb3747b3d76a04373d244.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/depends')
-rw-r--r--mk/depends/bsd.depends.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/depends/bsd.depends.mk b/mk/depends/bsd.depends.mk
index 8c5bed66c44..ab3e3d0b358 100644
--- a/mk/depends/bsd.depends.mk
+++ b/mk/depends/bsd.depends.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.depends.mk,v 1.6 2006/07/05 22:21:02 jlam Exp $
+# $NetBSD: bsd.depends.mk,v 1.7 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 dependencies.
@@ -77,6 +77,7 @@ depends-clean:
.PHONY: depends-cookie
.if !target(depends-cookie)
depends-cookie:
+ ${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_DEPENDS_COOKIE} || ${FALSE}
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_DEPENDS_COOKIE:H}
${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_ARGS} ${_DEPENDS_COOKIE}
.endif