Hi, I want to use $(word ) and $(words) function to do sth.
Makefile:
all:
for (( i=0 ; i <= $(words a b c d e f) ; ++i )) ; do echo $$i ;
echo $(word $$i, a b c d e f) ; done;
the output is:
makefile:2: *** non-numeric first argument to `word' function: '$i'. Stop.
what's wrong with the line 2? Thanks!
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make
