ungleich-graphviz/Makefile
2021-03-08 21:55:47 +01:00

24 lines
537 B
Makefile

all: $(addsuffix .png, $(basename $(wildcard *.dot))) $(addsuffix .pdf, $(basename $(wildcard *.dot))) $(addsuffix .svg, $(basename $(wildcard *.dot)))
# all:
# for dot in *.dot; do make $${dot%%.dot}.png; done
# for dot in *.dot; do make $${dot%%.dot}.pdf; done
# for dot in *.dot; do make $${dot%%.dot}.svg; done
clean:
rm -f *.png *.pdf *.svg
%.png: %.dot
dot -Tpng -Gdpi=300 < $< > $@
%.eps: %.dot
dot -Teps < $< > $@
%.jpg: %.dot
dot -Tjpg < $< > $@
%.pdf: %.dot
dot -Tpdf < $< > $@
%.svg: %.dot
dot -Tsvg < $< > $@