summaryrefslogtreecommitdiff
path: root/mk/tools
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
commita8fcae392540bc78e93e66eec058d65e59b7af55 (patch)
tree86e01d40e2b6fbd8f12d013ad3e7e680b240efb2 /mk/tools
parenta0f0e953977ff6d61f9c043c0ff5b406cedf2c89 (diff)
downloadpkgsrc-a8fcae392540bc78e93e66eec058d65e59b7af55.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/tools')
-rw-r--r--mk/tools/bsd.tools.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/tools/bsd.tools.mk b/mk/tools/bsd.tools.mk
index e0d72d958fe..e564adca511 100644
--- a/mk/tools/bsd.tools.mk
+++ b/mk/tools/bsd.tools.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.tools.mk,v 1.40 2006/07/05 22:21:03 jlam Exp $
+# $NetBSD: bsd.tools.mk,v 1.41 2006/07/06 22:29:53 jlam Exp $
#
# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -115,6 +115,7 @@ tools-message:
###
.PHONY: tools-cookie
tools-cookie:
+ ${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_TOOLS_COOKIE} || ${FALSE}
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_TOOLS_COOKIE:H}
${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${USE_TOOLS:Q} > ${_TOOLS_COOKIE}