TDT4205/exercises/02/graphviz/Makefile

13 lines
268 B
Makefile
Raw Normal View History

2022-02-13 17:40:43 +01:00
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}