summaryrefslogtreecommitdiff
path: root/mk/patch
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/patch
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/patch')
-rw-r--r--mk/patch/patch.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/patch/patch.mk b/mk/patch/patch.mk
index 5d88487346a..e6e0b3e4589 100644
--- a/mk/patch/patch.mk
+++ b/mk/patch/patch.mk
@@ -1,4 +1,4 @@
-# $NetBSD: patch.mk,v 1.6 2006/07/05 22:21:03 jlam Exp $
+# $NetBSD: patch.mk,v 1.7 2006/07/06 22:29:53 jlam Exp $
#
# The following variables may be set in a package Makefile and control
# how pkgsrc patches are applied.
@@ -108,6 +108,7 @@ patch-message:
###
.PHONY: patch-cookie
patch-cookie:
+ ${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_PATCH_COOKIE} || ${FALSE}
${_PKG_SILENT}${_PKG_DEBUG} \
if ${TEST} -f ${_PATCH_APPLIED_FILE:Q}; then \
${MV} -f ${_PATCH_APPLIED_FILE:Q} ${_PATCH_COOKIE:Q}; \