[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recursive functions in a Makefile
From: |
Dylan Cuthbert |
Subject: |
Re: recursive functions in a Makefile |
Date: |
Thu, 23 May 2002 12:12:38 +0900 |
great, sorry about the character set, I must have let a japanese character
through somewhere as it normally defaults to the western europe iso
standard.
Glad to hear about the cvs change to enable call recursion.
Just a simple change but it'll really improve the functionality available
from within a Makefile.
Which version of Make will that appear in?
Regards
---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com
----- Original Message -----
From: "Paul D. Smith" <address@hidden>
To: "Dylan Cuthbert" <address@hidden>
Cc: <address@hidden>
Sent: Thursday, May 23, 2002 10:13 AM
Subject: Re: recursive functions in a Makefile
> %% "Dylan Cuthbert" <address@hidden> writes:
>
> Pls. try to choose a proper charset for your messages. iso-2022-jp is
> not always a viewable charset.
>
> dc> reverse_words = $(if $(1),$(call reverse_words,$(wordlist 2,$(words
> dc> $(1)),$(1))) $(firstword $(1)))
> dc> MESSAGE = this is a message to be reversed
> dc> REVERSE = $(call reverse_words, $(MESSAGE))
>
> dc> I get the error:
>
> dc> *** Recursive variable `reverse_words' references itself
(eventually).
> dc> Stop.
>
> dc> I *know* it references itself but I use the Makefile $(if statement
to
> dc> prevent infinite loops.
>
> There has already been a fix made to the CVS source which allows the
> first argument to $(call ...) to expand recursively. No other functions
> or variables are allowed to recurse.
>
> --
> --------------------------------------------------------------------------
-----
> Paul D. Smith <address@hidden> Find some GNU make tips at:
> http://www.gnu.org
http://www.paulandlesley.org/gmake/
> "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make