# just to make document processing a bit easier .SUFFIXES: .dvi .tex .jpg .eps .ps .fig .pdf .html LATEX = latex # the following line may look strange, but it works! #TEXINPUTS = /home/intevation/doc/sty:$(TEXINPU) DOCUMENTS = sciparam-manual.ps IMAGES = %.eps: %.jpg convert jpg:$*.jpg eps:$*.eps %.eps: %.fig fig2dev -L ps -p dummy_arg -z A4 $*.fig > $*.ps %.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) clean: rm -f *.log *.toc *.aux