DOT_PICTURES=$(wildcard *.dot)
DOT_STYLE= -Gcenter=1 -Nfontsize=12 -Nshape=plaintext
#-Gpage="11.0,8.0"
#-Nshape=box
#box#ellipse#plaintext
#-Gnodesep=0.0?

all:	$(DOT_PICTURES:%.dot=%.png) $(DOT_PICTURES:%.dot=%.eps) $(DOT_PICTURES:%.dot=%.pdf)

clean:
	rm *.eps *.pdf *.png

%.eps: %.dot
	dot $(DOT_STYLE) -Tps $< -o $@

%.ps2: %.dot
	dot $(DOT_STYLE) -Tps2 $< -o $@

%.png: %.dot
	dot $(DOT_STYLE) -Tpng $< -o $@

%.pdf: %.dot
	dot $(DOT_STYLE) -Tps2 $< | epstopdf --filter > $@

