TESTS = $(wildcard tests/*) RESULTS = $(patsubst tests/%, results/%, $(TESTS)) all: $(RESULTS) results/%: tests/%