gnu make - how to work with list of variables in makefile? -


i have list of variables:

var_list= var1 var2 var3 var4 var5 

and script (var_process.py)in recipe uses variable 1 of option.

how create recurring instance sequentially process var_process.py using var_list.

i have makefile setup this, cant figure out how can setup var_list sequential.

target1: $(foreach var, $(var_list), $(var)_process_var.txt)   %_process_var.txt:var_process.py %_var.txt      python $< -i $(word 2, $^) -var var_list -o $@ 

doesn't work use $*? write this:

%_process_var.txt: var_process.py %_var.txt         python $< -i $(word 2, $^) -var $* -o $@ 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -