It's my understanding that we don't actually know what Benjamin wants to do, because nobody has asked. So I don't see how this would make me wrong.

From his mail am I assuming he wants his Makefile to print "BAR" for a target "test-stem" as well as "subdir/test-stem", which is what he will get when he uses $(eval ...).

Respectfully,

Sven



On 02/08/17 20:12, Kyle Rose wrote:
On Wed, Aug 2, 2017 at 3:03 PM, Sven C. Dack <sven.c.d...@sky.com> wrote:
Hello,

try it with the following rules:

test-%: $(eval FOO = BAR)
test-%:
     echo $(FOO)
FOO is a global variable in this case. Not sure what you're trying to
demonstrate here.

Kyle

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make



_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to