summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>2000-07-25 15:15:47 +0000
committeragc <agc>2000-07-25 15:15:47 +0000
commit4ccfbd137d3bf47cbd9ef9e7207eacb0d3728974 (patch)
tree1d0e2a68df2514bc91e795e9dd80c870cd0e635d /mk
parent38bc7c091db7dfc9f97e254dac3295de104e7771 (diff)
downloadpkgsrc-4ccfbd137d3bf47cbd9ef9e7207eacb0d3728974.tar.gz
Optimise by setting the EVAL_PREFIX names and directories in MAKEFLAGS, so
that they get passed to sub-makes.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 6b5ee18e7cc..bc4591f12a8 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.517 2000/07/24 20:23:02 rh Exp $
+# $NetBSD: bsd.pkg.mk,v 1.518 2000/07/25 15:15:47 agc Exp $
#
# This file is in the public domain.
#
@@ -1190,7 +1190,9 @@ show-downlevel:
.if defined(EVAL_PREFIX)
.for def in ${EVAL_PREFIX}
.if !defined(${def:C/=.*//})
-${def:C/=.*//} != (${PKG_INFO} -qp ${def:C/.*=//} 2>/dev/null; ${ECHO} " @cwd ${X11PREFIX}") | ${AWK} '{ print $$2; exit }'
+_dir_${def:C/=.*//} != (${PKG_INFO} -qp ${def:C/.*=//} 2>/dev/null; ${ECHO} " @cwd ${X11PREFIX}") | ${AWK} '{ print $$2; exit }'
+${def:C/=.*//}=${_dir_${def:C/=.*//}}
+MAKEFLAGS+= ${def:C/=.*//}=${_dir_${def:C/=.*//}}
.endif
.endfor
.endif