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