On Sat, 2008-06-14 at 12:53 -0700, Greg McGary wrote:
$(expand VARNAME)
expands as $(VARNAME) if VARNAME is defined
expands as the empty string if VARNAME is undefined, but
without undefined variable warnings.
"expand" is a rather bland name without distinction, though compact.
Better might be: $(expand-without-warnings ...) or $(maybe-expand ...)
What do you think? If I submitted a patch for this, would you add it
to the next release?
To be honest, I don't like it much. If your variables are automatically
generated anyway can't you just have an $(eval ...) that assigns all the
variables you think you need to the empty string, so that they're
defined