http://aunapoleondor.fr/fr/article-detail.php?refpage=81 Process multiple files in a directory by Makefile.
SOURCES := $(wildcard *_conversion.txt) TARGETS := $(patsubst %_conversion.txt, %_uniq.txt, $(SOURCES)) .PHONY: all all: $(TARGETS) %_uniq.txt: %_conversion.txt > command $< > $@