summaryrefslogtreecommitdiff
path: root/mk/tools
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/tools
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/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}