GRAPHVIZ_PDFS:=$(patsubst %.dot,%.pdf,$(wildcard *.dot)) .PHONY: all clean all: ${GRAPHVIZ_PDFS} %.pdf: %.svg inkscape $< --export-area-drawing --batch-process --export-type=pdf --export-filename=$@ %.svg: %.dot dot -Tsvg -o $@ $< clean: rm -rf ${GRAPHVIZ_PDFS}