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" <[EMAIL PROTECTED]> To: "Dylan Cuthbert" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, May 23, 2002 10:13 AM Subject: Re: recursive functions in a Makefile > %% "Dylan Cuthbert" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 > [EMAIL PROTECTED] > http://mail.gnu.org/mailman/listinfo/help-make _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
