summaryrefslogtreecommitdiff
path: root/mk/fetch
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-27 21:46:45 +0000
committerjlam <jlam@pkgsrc.org>2006-07-27 21:46:45 +0000
commit2fa106218c02eb7fa10d25c155232268993a92ff (patch)
treecfcc9913180425eb49a1e2c5c65e2e2044d9a6ef /mk/fetch
parent949200a7c1655601e1ab1ce558e9b50635365362 (diff)
downloadpkgsrc-2fa106218c02eb7fa10d25c155232268993a92ff.tar.gz
Whenever we invoke a recursive make, we need to ensure that the proper
environment ${PKGSRC_MAKE_ENV} is also passed along. Create a convenience variable RECURSIVE_MAKE that does exactly this and that can be used in place of MAKE when invoking make recursively. Use RECURSIVE_MAKE everywhere in pkgsrc/mk that we invoke make recursively.
Diffstat (limited to 'mk/fetch')
-rw-r--r--mk/fetch/fetch-list.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/fetch/fetch-list.mk b/mk/fetch/fetch-list.mk
index 98abc10f20f..de7241340b3 100644
--- a/mk/fetch/fetch-list.mk
+++ b/mk/fetch/fetch-list.mk
@@ -1,4 +1,4 @@
-# $NetBSD: fetch-list.mk,v 1.8 2006/07/27 17:29:57 jlam Exp $
+# $NetBSD: fetch-list.mk,v 1.9 2006/07/27 21:46:46 jlam Exp $
######################################################################
### fetch-list (PUBLIC)
@@ -39,8 +39,8 @@ fetch-list-header:
fetch-list-recursive:
@${_DEPENDS_WALK_CMD} -r ${PKGPATH} | \
while read dir; do \
- ( cd ../../$$dir && ${SETENV} ${PKGSRC_MAKE_ENV} \
- ${MAKE} ${MAKEFLAGS} fetch-list-one-pkg | \
+ ( cd ../../$$dir && \
+ ${RECURSIVE_MAKE} ${MAKEFLAGS} fetch-list-one-pkg | \
${AWK} '/^[^#]/ { FoundSomething = 1 } \
/^unsorted/ { gsub(/[[:space:]]+/, " \\\n\t") } \
/^echo/ { gsub(/;[[:space:]]+/, "\n") } \