Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk enable MAKEDIRTARGET to be called with a separate e...
details: https://anonhg.NetBSD.org/src/rev/7cc806b065c7
branches: trunk
changeset: 749939:7cc806b065c7
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Dec 13 09:10:16 2009 +0000
description:
enable MAKEDIRTARGET to be called with a separate environment,
called $MAKEDIRTARGETENV, defaulting to nothing.
diffstat:
share/mk/bsd.own.mk | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 5d2bfc24653a -r 7cc806b065c7 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk Sun Dec 13 09:07:32 2009 +0000
+++ b/share/mk/bsd.own.mk Sun Dec 13 09:10:16 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.611 2009/12/13 09:01:46 mrg Exp $
+# $NetBSD: bsd.own.mk,v 1.612 2009/12/13 09:10:16 mrg Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -966,8 +966,9 @@
#
# MAKEDIRTARGET dir target [extra make(1) params]
-# run "cd $${dir} && ${MAKE} [params] $${target}", with a pretty message
+# run "cd $${dir} && ${MAKEDIRTARGETENV} ${MAKE} [params] $${target}", with a pretty message
#
+MAKEDIRTARGETENV?=
MAKEDIRTARGET=\
@_makedirtarget() { \
dir="$$1"; shift; \
@@ -983,7 +984,7 @@
show=$${this:-.}; \
echo "$${target} ===> $${show%/}$${1:+ (with: $$@)}"; \
cd "$${real}" \
- && ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \
+ && ${MAKEDIRTARGETENV} ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \
}; \
_makedirtarget
Home |
Main Index |
Thread Index |
Old Index