1 %.pdf: %.dot 2 dot $< -Tpdf -o $@ 3 4 %.png: %.dot 5 dot $< -Tpng -o $@ 6 7 DOTFILES = $(basename $(wildcard *.dot)) 8 all: $(addsuffix .png, $(DOTFILES)) $(addsuffix .pdf, $(DOTFILES)) 9