#! /usr/bin/make -f

all: speech.mgp developers.gif packages.gif
	mgp -V -x vflib speech.mgp 2> log

html: all
	mkdir -p html
	mgp -x vflib -D html speech.mgp

speech.ps: all speech.mgp 
	mgp2ps -c -t $< > $@

clean:
	rm -f speech.ps speech.pdf core
	rm -f developers.gif packages.gif
	rm -f developers.png packages.png
	rm -f .gscache* *~ log

developers.png packages.png: plot developers packages
	sh plot

%.gif: %.png
	convert $< $@

%.eps: %.dia
	dia --export=$@ $<

%.pdf: %.ps
	ps2pdf $^

.PHONY: all clean html
