On 10.06.2011 1:16, Peng Yu wrote:
Hi,

I think that there is probably no way to support named parameters in
make ($(eval $(call ...))). But I want double-check in case there is
some walkaround to emulate named parameters. Could anybody let me
know?

http://en.wikipedia.org/wiki/Named_parameter

You can emulate C like structure in GNU Make by double substitution:

my_str = "hello"
my_str_len = 4

your_str = "bye"
your_str_len = 3

data = my
$(info String is: $($(data)_str) and $($(data)_str_len) long.)
data = your
$(info String is: $($(data)_str) and $($(data)_str_len) long.)

Is this useful for you?

--
С уважением, Александр Гавенко.

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to