%% gk <[EMAIL PROTECTED]> writes:
g> I am having trouble understanding why the following macro 'rule2'
g> is not evaluating the way I expect. Is this a bug? In what order
g> are nested $(call ...) statements evaluated? Thanks for any
g> insights.
This has nothing to do with call, or order of evaluation, or anything
like that. The problem is much simpler.
The word function takes two arguments, and you're only passing it one:
g> echo hello $(call word,$(1))
^^^^
Just like the error says:
g> Makefile:22: *** Insufficient number of arguments (1) to function `word'. Stop.
See the GNU make manual description of the "word" function.
Replace your call invocation with something that passes two arguments,
like this:
echo hello $(call word,1,$(1))
and it will work.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"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