Add graphviz files
This commit is contained in:
13
exercises/02/graphviz/Makefile
Normal file
13
exercises/02/graphviz/Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
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}
|
||||
Reference in New Issue
Block a user