1 2 3 4 5 6 7 8 9 10
TESTS=$(wildcard *.test) all: $(patsubst %,_test_%,$(TESTS)) .PHONY: $(patsubst %,_test_%,$(TESTS)) $(patsubst %,_test_%,$(TESTS)): @test=$(patsubst _test_%,%,$@); \ echo "[$$test]" ; \ export QUILTRC=test.quiltrc ; \ ./run $$test