From 60e18f234a0776557dcf4bd0974b63830c8742b1 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 20 Jul 2006 17:40:45 +0000 Subject: Use an ODE variable loop instead of a make .for loop to output the list of "TOOL" variables defined by the tools framework. --- mk/bsd.pkg.debug.mk | 11 +++++------ 1 file 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" -- cgit v1.2.3