[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nested calls in make
From: |
Philip Guenther |
Subject: |
Re: Nested calls in make |
Date: |
Tue, 25 Nov 2008 00:48:26 -0800 |
On Tue, Nov 25, 2008 at 12:43 AM, kalyan <address@hidden> wrote:
> I am using make-3.81.
> The GNU make manual says "The call function can be nested. Each recursive
> invocation gets its own local values for $(1), etc. that mask the values of
> higher-level call."
>
> I have tried this code but it gets stuck forever:
> -----------
> define test_function
> echo $(1)
> $(call test_function,1)
> endef
> all:
> @$(call test_function,1)
> ------------
Yep, that's the correct behavior. Apparently that's not what you
expected from the text. It would be easier to correct your
understanding if you were to explain how you thought that snippet
would behave.
Philip Guenther