[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in $(call ...) ?
From: |
Ken Smith |
Subject: |
Re: Bug in $(call ...) ? |
Date: |
Mon, 20 Dec 2004 08:33:07 -0500 |
User-agent: |
Mutt/1.5.6i |
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,
>
> address@hidden:~/tmp> cat Makefile
> X = echo
> A = $($(1)) $$(1) $$(2)
> B = $(call A,X)
>
> all:
> @echo '[$(B)]'
> @echo '[$(call B,hi,lo)]'
> address@hidden:~/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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
- Bug in $(call ...) ?, Alexey Neyman, 2004/12/20
- Re: Bug in $(call ...) ?,
Ken Smith <=
- Re: Bug in $(call ...) ?, Alexey Neyman, 2004/12/20
- Re: Bug in $(call ...) ?, Boris Kolpackov, 2004/12/20
- Re: Bug in $(call ...) ?, Paul D. Smith, 2004/12/20
- Re: Bug in $(call ...) ?, Alexey Neyman, 2004/12/21
- Re: Bug in $(call ...) ?, Boris Kolpackov, 2004/12/21
- Re: Bug in $(call ...) ?, Paul D. Smith, 2004/12/21