SOURCES = index.html index.js index.css .PHONY: all clean all: out $(patsubst %,out/%,$(SOURCES)) clean: rm -rf out out: mkdir out out/%: % apply_params.sh ./apply_params.sh <$< >$@