# 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 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 && $(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 %.html: %.dvi mkdir $* || rm -rf $* latex2html $*.tex all: $(DOCUMENTS:%=%.pdf) $(DOCUMENTS:%=%.html) sciparam-manual.dvi: sciparam-manual-gui.tex gnufdl.tex clean: rm -f *.log *.toc *.aux very_clean: clean rm -f $(DOCUMENTS:%=%.dvi) $(DOCUMENTS:%=%.ps) $(DOCUMENTS:%=%.pdf) rm -rf $(DOCUMENTS) .PHONY: all clean very_clean