TDT4205/exercises/02/graphviz/Makefile

13 lines
268 B
Makefile

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}