foreach in Makefile foreach in Makefile Back Syntax: $(foreach var,list,text) Use Case: This is used FILES=$(foreach file,$(NAMES),"$(file).lua") Reference: GNU foreach Reference