Perhaps the following modifications get you what you want. I think
perhaps you are just missing the passthrough for the numbered parameters
for B.
X = echo
A = $($(1)) $(2) $(3)
B = $(call A,X,$(1),$(2))
all:
@echo '[$(B)]'
@echo '[$(call B,hi,lo)]'
$(call B,hi,lo)
Ken
On Mon, Dec 20, 2004 at 01:40:02PM +0300, Alexey Neyman wrote:
> Hi,
>
> [EMAIL PROTECTED]:~/tmp> cat Makefile
> X = echo
> A = $($(1)) $$(1) $$(2)
> B = $(call A,X)
>
> all:
> @echo '[$(B)]'
> @echo '[$(call B,hi,lo)]'
> [EMAIL PROTECTED]:~/tmp> make all
> [echo $(1) $(2)]
> [echo $(1) $(2)]
>
> I thought the "$(call B,hi,lo)" should have evaluated to "echo hi lo",
> shouldn't it?
>
> Regards,
> Alexey.
>
> --
> Ah, an insult... a sometimes necessary and constructive release of
> tension.
> -- Pkunks, SC2
>
>
> _______________________________________________
> Help-make mailing list
> [EMAIL PROTECTED]
> http://lists.gnu.org/mailman/listinfo/help-make
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/help-make