Re: if function combined with filter or findstring with eval

2016-10-20 Thread Paul Smith
On Thu, 2016-10-20 at 15:22 -0600, Scott Kruger wrote: >    FOO:=$(foreach rarg, $(RUNTESTS_ARGS), $(if $(findstring  > $(argsearch),$(eval $(value rarg))), $(rarg))) I don't understand what you're trying to do, but definitely eval is not what you want to use, at least not where you're using it.

if function combined with filter or findstring with eval

2016-10-20 Thread Scott Kruger
I am trying to construct a simple list of variables whose values match certain patterns. It seems straightforward, but I can't get the righ t The makefile is: -- RUNTESTS=runex1 runex2 runex3 RUNTESTS_ARGS=$(foreach runtest, $(RUNTESTS), $(runtest)_ARGS) ifdef argsearch FOO:=$(forea

Re: if function combined with filter or findstring with eval

2016-10-20 Thread Philip Guenther
On Thu, Oct 20, 2016 at 2:22 PM, Scott Kruger wrote: > I am trying to construct a simple list of variables > whose values match certain patterns. It seems > straightforward, but I can't get the righ t > > The makefile is: > -- > RUNTESTS=runex1 runex2 runex3 > RUNTESTS_ARGS=$(foreach runt

Re: if function combined with filter or findstring with eval

2016-10-20 Thread Scott Kruger
Thanks so much for all of the help. It not only fixed my problem but lets me understand what I did wrong and how to develop gmake. For reference, here is what I came up with to make targets based on either wildcard search of target names or a findstring of the target values. Others might fi