help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nested calls in make


From: kalyan
Subject: Nested calls in make
Date: Tue, 25 Nov 2008 14:13:29 +0530

Hi all,
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)
------------

Any hints are appreciated.


regards
kalyan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]