.PHONY: all
all: topics.svg topics.png
%.dot: %.m4.dot
m4 $< > $@
%.svg: %.dot
dot -Tsvg $< > $@
%.png: %.dot
dot -Tpng $< > $@