diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-20 17:40:45 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-20 17:40:45 +0000 |
commit | 6bd385f1bb3188d95aecea85e64229cc4730a7d0 (patch) | |
tree | 3c5ad49ef72e3864fa5f9c9b030bba91712f00bf /mk/bsd.pkg.debug.mk | |
parent | 63572ebd6f9dbd209e13f8a8a8a099ba5425d32e (diff) | |
download | pkgsrc-6bd385f1bb3188d95aecea85e64229cc4730a7d0.tar.gz |
Use an ODE variable loop instead of a make .for loop to output the list
of "TOOL" variables defined by the tools framework.
Diffstat (limited to 'mk/bsd.pkg.debug.mk')
-rw-r--r-- | mk/bsd.pkg.debug.mk | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mk/bsd.pkg.debug.mk b/mk/bsd.pkg.debug.mk index 2a1b3f75622..0de87c4ded0 100644 --- a/mk/bsd.pkg.debug.mk +++ b/mk/bsd.pkg.debug.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.debug.mk,v 1.3 2006/07/20 17:31:20 rillig Exp $ +# $NetBSD: bsd.pkg.debug.mk,v 1.4 2006/07/20 17:40:45 jlam Exp $ # # The `debug' target outputs the values of some commonly used variables @@ -44,13 +44,12 @@ _show-dbginfo-file-versions: esac; \ done +# Use an ODE variable loop to output the "TOOL" name and value for each +# unique tool listed in USE_TOOLS. +# _show-dbginfo-tools: @${PRINTF} "TOOLS:\\n" -.for _t_ in ${USE_TOOLS:O} -. if defined(_TOOLS_VARNAME.${_t_}) - @${PRINTF} "\\t%s=%s\\n" ${_TOOLS_VARNAME.${_t_}:Q} ${${_TOOLS_VARNAME.${_t_}}:Q} -. endif -.endfor + @${USE_TOOLS:C/:.*//:O:u:@_t_@${_TOOLS_VARNAME.${_t_}:D${PRINTF} "\\t%s=%s\\n" ${_TOOLS_VARNAME.${_t_}} ${${_TOOLS_VARNAME.${_t_}}:Q};}@} _show-dbginfo-configure: @${PRINTF} "CONFIGURE_DIRS:\\n" |