# just to make document processing a bit easier .SUFFIXES: .dvi .tex .jpg .eps .ps .fig .sk .pdf .html LATEX = latex # the following line may look strange, but it works! #TEXINPUTS = /home/intevation/doc/sty:$(TEXINPU) DOCUMENTS=great-er_web_specification.dvi great-er_web_manual.dvi great-er_web_administration.dvi greaterweb-testplan.dvi IMAGES=great-er_web_component_details.eps great-er_web_components.eps %.eps: %.jpg convert jpg:$*.jpg eps:$*.eps %.eps: %.fig fig2dev -L ps -p dummy_arg -z A4 $*.fig > $*.ps %.eps: %.sk sk2ps $*.sk $*.eps %.dvi: %.tex $(LATEX) $*.tex && $(LATEX) $*.tex %.ps: %.dvi dvips -o $*.ps $*.dvi %.pdf: %.ps ( echo "<< /AutoFilterColorImages false"; \ echo " /EncodeColorImages true"; \ echo " /DownsampleColorImages false"; \ echo " /ColorImageFilter /FlateEncode"; \ echo ">> setdistillerparams" ) \ | cat - $*.ps | ps2pdf - $*.pdf all: $(DOCUMENTS:.dvi=.ps) $(IMAGES) great-er_web_manual.dvi: gnufdl.tex clean: rm -f *.log *.toc *.aux distclean: clean rm -f $(DOCUMENTS) $(DOCUMENTS:.dvi=.ps) $(DOCUMENTS:.dvi:.pdf)