summaryrefslogtreecommitdiff
path: root/mk/tools/bsd.tools.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-05 09:08:35 +0000
committerjlam <jlam@pkgsrc.org>2006-07-05 09:08:35 +0000
commit990d0b53771974e8526315776af82fd9b4961c14 (patch)
tree266445424a702f9333f761cfa65f977c42683645 /mk/tools/bsd.tools.mk
parente3b97d774b9eb87dcd011ba0aeca7f60d35eeb86 (diff)
downloadpkgsrc-990d0b53771974e8526315776af82fd9b4961c14.tar.gz
Make the check-vulnerable target more self-sufficient, by moving some
of the logic from fetch/fetch.mk into flavor/pkg/check.mk, so that check-vulnerable can be used as a source target. Make check-vulnerable a source target for every phase of the build workflow, which ensures that it is always run if the user starts a new phase from the command line. Fix the cookie-generation targets so that they don't append, only overwrite to the cookie file. This works around potential problems due to recursive makes. Move the cookie checks so that they surround the corresponding phase target. The presence of the cookie should now inform the make process to avoid doing any processing of phases that occur before the phase corresponding to the cookie.
Diffstat (limited to 'mk/tools/bsd.tools.mk')
-rw-r--r--mk/tools/bsd.tools.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/mk/tools/bsd.tools.mk b/mk/tools/bsd.tools.mk
index 1409be171e7..594d4194b9a 100644
--- a/mk/tools/bsd.tools.mk
+++ b/mk/tools/bsd.tools.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.tools.mk,v 1.38 2006/07/05 04:32:10 jlam Exp $
+# $NetBSD: bsd.tools.mk,v 1.39 2006/07/05 09:08:35 jlam Exp $
#
# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -68,19 +68,19 @@ _TOOLS_TARGETS+= release-tools-lock
.PHONY: tools
.if !target(tools)
+. if !exists(${_TOOLS_COOKIE})
tools: ${_TOOLS_TARGETS}
+. else
+tools:
+ @${DO_NADA}
+. endif
.endif
.PHONY: acquire-tools-lock release-tools-lock
acquire-tools-lock: acquire-lock
release-tools-lock: release-lock
-.if !exists(${_TOOLS_COOKIE})
${_TOOLS_COOKIE}: real-tools
-.else
-${_TOOLS_COOKIE}:
- @${DO_NADA}
-.endif
######################################################################
### real-tools (PRIVATE)
@@ -111,7 +111,7 @@ tools-message:
.PHONY: tools-cookie
tools-cookie:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_TOOLS_COOKIE:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${USE_TOOLS:Q} >> ${_TOOLS_COOKIE}
+ ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${USE_TOOLS:Q} > ${_TOOLS_COOKIE}
######################################################################
### override-tools (PRIVATE)