On Mar 11, 2011, at 1:12 PM, Krzysztof Cieniuch wrote:

> Do you mean this:
> 
> FACTORS = form pos cluster
> #set to factor_i:=x if you want to start index from 1
> factor_i:=
> $(foreach factor,$(FACTORS),   \
> $(eval $(factor):=$(words $(factor_i))) \
> $(eval factor_i+=x))
> 
> $(info form=$(form))
> $(info pos=$(pos))
> $(info cluster=$(cluster))

Exactly! This solves the problem.

I didn't know the words function. 

Thank you

Christian

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to