I would like a rule something like:
build/%.ext: src/%.ext action
I have one directory of files in a folder that I want to optimize and
Try somethink like this:
INPUT_FILES = \ src/a.txt \ src/b.txt \ OPTIMIZED_FILES=$(patsubst src/%.ext,build/%.ext,$(INPUT_FILES)) $(OPTIMIZED_FILES): build/%.ext: src/%.txt optimize_command $@ $<