1 2 3 4 5 6 7
DOT = $(wildcard *.dot) PNG = $(patsubst %.dot,%.png,$(DOT)) all: $(PNG) %.png: %.dot dot -Tpng $< -o $@