bug#32269: Expanding variables

2018-07-25 Thread Philip Prindeville
> On Jul 25, 2018, at 4:15 PM, Eric Blake wrote: > > On 07/25/2018 05:06 PM, Philip Prindeville wrote: > >> Well, the above assumes Gnu Make, yes. >> How many other flavors of Make does automake/autoconf work with? > > At the moment, all of them. > > Automake 2.0 (currently a work in

bug#32269: Expanding variables

2018-07-25 Thread Eric Blake
On 07/25/2018 05:06 PM, Philip Prindeville wrote: Well, the above assumes Gnu Make, yes. How many other flavors of Make does automake/autoconf work with? At the moment, all of them. Automake 2.0 (currently a work in progress if you check out the right branches in git) requires GNU make,

bug#32269: Expanding variables

2018-07-25 Thread Philip Prindeville
> On Jul 25, 2018, at 2:37 PM, Nick Bowler wrote: > > On 7/25/18, Philip Prindeville wrote: >> Since automake/autoconf are responsible for generating Makefiles, we >> could add something like: >> >> val.%: >> @$(if $(filter undefined,$(origin $*)),\ >> echo "$* undefined"

bug#32269: Expanding variables

2018-07-25 Thread Nick Bowler
On 7/25/18, Philip Prindeville wrote: > Since automake/autoconf are responsible for generating Makefiles, we > could add something like: > > val.%: > @$(if $(filter undefined,$(origin $*)),\ > echo "$* undefined" >&2, \ > echo '$(subst ','"'"',$($*))' \ > )

bug#32269: Expanding variables

2018-07-25 Thread Philip Prindeville
Since automake/autoconf are responsible for generating Makefiles, we could add something like: val.%: @$(if $(filter undefined,$(origin $*)),\ echo "$* undefined" >&2, \ echo '$(subst ','"'"',$($*))' \ ) var.%: @$(if $(filter