Re: parameter replacement in make during rule execution

2014-10-11 Thread vincent . stay
On Friday, October 10, 2014 5:45:24 PM UTC-7, Bob Proulx wrote: ... Thanks for the gnu help list. I'll keep that in mind in the future. It turns out my problem is about a misunderstanding of when make expands its variables. My solution is to do this before the rule: NEWOPTIONS := $(foreach opt,$(

Re: parameter replacement in make during rule execution

2014-10-10 Thread Bob Proulx
Hello Vincent, Perhaps someone here in help-gnu-utils will know the answer to your question. I do not and therefore cannot answer. But I think you would have an excellent result if you were to ask your question in the help-m...@gnu.org mailing list. That is dedicated to GNU make and is where al

parameter replacement in make during rule execution

2014-10-09 Thread vincent . stay
Hi, I have a makefile which generates a tcl file when a certain target is made: DO_SIM: [many echo commands] >> sim.tcl for option in $(OPTIONS); do\ echo -n "$(if $(findstring =,$$option),$$option,$$option=) " >> sim.tcl;\ done;