#! /usr/bin/make -f DIASOURCES = $(wildcard *.dia) DIATARGETS = $(patsubst %.dia, %.eps, $(DIASOURCES)) all: $(DIATARGETS) html: all mgp -D ../html speech.mgp speech.ps: all speech.mgp mgp2ps -c -t $< > $@ clean: rm -f speech.ps speech.pdf core rm -f $(DIATARGETS) rm -f .gscache* %.gif: %.png convert $< $@ %.eps: %.dia dia --export=$@ $< %.pdf: %.ps ps2pdf $^ .PHONY: all clean html