I am having difficulty using eval and shell together. Here is my makefile:
define aaa
$(1)_VAR1 = World
$(1)_VAR2 = $(shell echo Hello $($(1)_VAR1))
endef
$(eval $(call aaa,DEMO))
$(info $(DEMO_VAR1))
$(info $(DEMO_VAR2))
Output:
~$ make
World
Hello
make: *** No targets. Stop.
I would have thought the second line of output would have been:
Hello World
Why isn't it, and how can I fix the makefile so it is?
Thanks
Doug
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make