summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-06 22:29:52 +0000
committerjlam <jlam>2006-07-06 22:29:52 +0000
commit2c34acb79346f48360f3430708245ba4e7afe01b (patch)
tree86e01d40e2b6fbd8f12d013ad3e7e680b240efb2 /mk/wrapper
parent0bdb9384411226f8e9febed88ef5c52911cd9587 (diff)
downloadpkgsrc-2c34acb79346f48360f3430708245ba4e7afe01b.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/wrapper')
-rw-r--r--mk/wrapper/bsd.wrapper.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk
index 83a69781e32..42d9e988f6a 100644
--- a/mk/wrapper/bsd.wrapper.mk
+++ b/mk/wrapper/bsd.wrapper.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.46 2006/07/06 18:19:45 jlam Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.47 2006/07/06 22:29:53 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -824,5 +824,6 @@ post-wrapper:
.PHONY: wrapper-cookie
wrapper-cookie:
+ ${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_WRAPPER_COOKIE} || ${FALSE}
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_WRAPPER_COOKIE:H}
${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${PKGNAME} > ${_WRAPPER_COOKIE}