summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.barrier.mk
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-07 21:24:27 +0000
committerjlam <jlam>2006-07-07 21:24:27 +0000
commit79e05428bc94d216a3fe1157d3667de366dfb0d8 (patch)
treee3a14bcdd4dd231263dc051a36761d879732de89 /mk/bsd.pkg.barrier.mk
parent037b6f50618226a0d2ee1a8bf472bc340a269d5f (diff)
downloadpkgsrc-79e05428bc94d216a3fe1157d3667de366dfb0d8.tar.gz
Rename <phase>_COOKIE variables to _COOKIE.<phase>. These are private
variables so there are no user-visible changes. This change just makes it a little easier to write for loops.
Diffstat (limited to 'mk/bsd.pkg.barrier.mk')
-rw-r--r--mk/bsd.pkg.barrier.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/bsd.pkg.barrier.mk b/mk/bsd.pkg.barrier.mk
index 3e302a3a6c2..35ac5bddb18 100644
--- a/mk/bsd.pkg.barrier.mk
+++ b/mk/bsd.pkg.barrier.mk
@@ -1,6 +1,6 @@
-# $NetBSD: bsd.pkg.barrier.mk,v 1.5 2006/07/06 22:17:57 jlam Exp $
+# $NetBSD: bsd.pkg.barrier.mk,v 1.6 2006/07/07 21:24:27 jlam Exp $
-_BARRIER_COOKIE= ${WRKDIR}/.barrier_cookie
+_COOKIE.barrier= ${WRKDIR}/.barrier_cookie
# _BARRIER_PRE_TARGETS is a list of the targets that must be built before
# the "barrier" target invokes a new make.
@@ -38,7 +38,7 @@ _BARRIER_CMDLINE_TARGETS+= ${_target_}
### target invokes a new make should be listed in _BARRIER_POST_TARGETS,
### and should be of the form:
###
-### .if !exists(${_BARRIER_COOKIE})
+### .if !exists(${_COOKIE.barrier})
### foo: barrier
### .else
### foo: foo's real source dependencies
@@ -49,8 +49,8 @@ _BARRIER_CMDLINE_TARGETS+= ${_target_}
###
.PHONY: barrier
-barrier: ${_BARRIER_PRE_TARGETS} ${_BARRIER_COOKIE}
-.if !exists(${_BARRIER_COOKIE})
+barrier: ${_BARRIER_PRE_TARGETS} ${_COOKIE.barrier}
+.if !exists(${_COOKIE.barrier})
. if defined(PKG_VERBOSE)
@${PHASE_MSG} "Invoking \`\`"${_BARRIER_CMDLINE_TARGETS:Q}"'' after barrier for ${PKGNAME}"
. endif
@@ -65,6 +65,6 @@ barrier: ${_BARRIER_PRE_TARGETS} ${_BARRIER_COOKIE}
######################################################################
### barrier-cookie creates the "barrier" cookie file.
###
-${_BARRIER_COOKIE}:
+${_COOKIE.barrier}:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${PKGNAME} > ${.TARGET}