TARGETS=$(shell find -name '*.dot' | sed -E 's~\.dot~\.png~') all: $(TARGETS) %.png: %.dot dot -Tpng $< -o target/$@