summaryrefslogtreecommitdiff
path: root/mk/cwrappers.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/cwrappers.mk')
-rw-r--r--mk/cwrappers.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/cwrappers.mk b/mk/cwrappers.mk
index 5d544548b3c..ede824686a7 100644
--- a/mk/cwrappers.mk
+++ b/mk/cwrappers.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cwrappers.mk,v 1.30 2017/11/08 03:52:50 khorben Exp $
+# $NetBSD: cwrappers.mk,v 1.31 2019/05/07 19:36:43 rillig Exp $
#
# This Makefile fragment implements integration of pkgtools/cwrappers.
@@ -101,7 +101,7 @@ _COOKIE.wrapper= ${WRKDIR}/.wrapper_done
.PHONY: wrapper
.if !target(wrapper)
-. if exists(${_COOKIE.wrapper})
+. if exists(${_COOKIE.wrapper}) && !${_CLEANING}
wrapper:
@${DO_NADA}
. elif defined(_PKGSRC_BARRIER)
@@ -115,7 +115,7 @@ wrapper: barrier
acquire-wrapper-lock: acquire-lock
release-wrapper-lock: release-lock
-.if exists(${_COOKIE.wrapper})
+.if exists(${_COOKIE.wrapper}) && !${_CLEANING}
${_COOKIE.wrapper}:
@${DO_NADA}
.else