DOT = $(wildcard *.dot)
PDF = $(DOT:.dot=.pdf)

.PHONY: build
build: $(PDF)

%.pdf: %.dot
	dot -Tpdf $< -o $@

.PHONY: clean
clean:
	rm -f *.pdf