.PHONY: html images
DOTS = $(wildcard dots/*.dot)
IMAGES = $(foreach dot, $(DOTS), $(basename $(dot)).png )

html: images
	mkdir -p html
	mv $(IMAGES) html
	doxygen doxygen/Doxyfile

images: $(IMAGES)

%.png: %.dot
	cat $< |nkf -w |dot -Tpng > $*.png

clean:
	rm -rf html
