%% Tom Bachmann <[EMAIL PROTECTED]> writes: tb> I'm trying to transform $(NAME)_CFLAGS := $$(CFLAGS) into $(eval $(call tb> SET,CFLAGS)), but I don't get it right.
tb> define SET tb> $$(NAME)_$(1) := $$$$($(1)) tb> endef tb> seems not to work. If I "hardcode" the sequence, everything works fine. tb> To give you some context: tb> a main makefile does $(eval $(call FOOFN,foo)) and this FOOFN does tb> $(eval $(call SET,CFLAGS)). Sorry, but this description is not sufficient for us to determine your problem. Please write a complete, but simple, makefile that demonstrates your problem and show how you invoked it and what the result was, and why that was wrong. Just saying it's not right doesn't mean anything to us. See http://www.catb.org/~esr/faqs/smart-questions.html. The information you provide above is not complete: you say you call this in your makefile: $(eval $(call FOOFN,foo)) then you say that FOOFN does this: $(eval $(call SET,CFLAGS)) where SET is this: define SET $$(NAME)_$(1) := $$$$($(1)) endef There has to be more than this, because here $(NAME) has no value. I can only assume from your description that you intend $(NAME) to have the value "foo" (the argument you use when you call FOOFN), but that transition is not shown here, and is certainly critical to the behavior. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
