summaryrefslogtreecommitdiff
path: root/mk/bsd.utils.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-01-18 03:58:19 +0000
committerjlam <jlam@pkgsrc.org>2006-01-18 03:58:19 +0000
commit8eef20de06b05383c4c9b0df7a81a25ecb178270 (patch)
treeddd24b3e51c2baee2b6f41206c4a9291a5caf30b /mk/bsd.utils.mk
parent5c5ac03ec12536d13869d4edf8c7c97b2796b9a1 (diff)
downloadpkgsrc-8eef20de06b05383c4c9b0df7a81a25ecb178270.tar.gz
Pass MAKEFLAGs to the depends-depth-first.awk script, which will be
used by the "make show-depends-pkgpaths" process to short-circuit some of the rather lengthy computations that are spread throughout bsd.pkg.mk and files included by bsd.pkg.mk. This causes the script to speed up noticeably. Also, rename the _DEPENDS_DEPTH_FIRST_CMD variable to _DEPENDS_WALK_CMD for brevity and to allow for other implementations in the future.
Diffstat (limited to 'mk/bsd.utils.mk')
-rw-r--r--mk/bsd.utils.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/mk/bsd.utils.mk b/mk/bsd.utils.mk
index 694ed613f4b..de843e3d326 100644
--- a/mk/bsd.utils.mk
+++ b/mk/bsd.utils.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.utils.mk,v 1.1 2006/01/18 00:10:07 jlam Exp $
+# $NetBSD: bsd.utils.mk,v 1.2 2006/01/18 03:58:19 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and defines utility
# and otherwise miscellaneous variables and targets.
@@ -25,10 +25,12 @@ show-depends-pkgpaths:
@${ECHO} ${_deppath_}
.endfor
-# _DEPENDS_DEPTH_FIRST_CMD holds the command (sans arguments) to traverse
-# the dependency graph for a package.
+# _DEPENDS_WALK_CMD holds the command (sans arguments) to walk the
+# dependency graph for a package.
#
-_DEPENDS_DEPTH_FIRST_CMD= \
+_DEPENDS_WALK_MAKEFLAGS?= ${MAKEFLAGS}
+_DEPENDS_WALK_CMD= \
${SETENV} ECHO=${TOOLS_ECHO:Q} MAKE=${MAKE:Q} \
+ MAKEFLAGS=${_DEPENDS_WALK_MAKEFLAGS:Q} \
PKGSRCDIR=${PKGSRCDIR:Q} TEST=${TOOLS_TEST:Q} \
${AWK} -f ${.CURDIR}/../../mk/scripts/depends-depth-first.awk --