Subject: Re: printing expanded variables?
To: NetBSD Toolchain Technical Discussion List <tech-toolchain@NetBSD.ORG>
From: Simon J. Gerraty <>
List: tech-toolchain
Date: 09/03/2003 21:35:52
Ok, since there's no unanimous favourite for new command line switch,
the following would work just as well, and still use -V.

$ make -V FUBAR
${FU} ${BAR}
$ make -V '$FUBAR'
fu bar

Note the distinct lack of {} after the $, it is just a clue to make
that we want Var_Subst rather than Var_Value.  Also, since '$' can be
a pain to quote/escape in some cases and since ':' is also an illegal
char in a variable name, I'd treat '$' or ':' as the expand clue.

$ make -V :FUBAR
fu bar