hans@900: # $Id$ hans@900: hans@900: .SUFFIXES: .dvi .tex .jpg .eps .ps .fig .pdf .html .tif hans@900: hans@900: LATEX = latex hans@900: hans@900: DOCUMENTS = WSPLGEN-Dokumentation.pdf hans@900: IMAGES = hans@900: hans@900: %.eps: %.jpg hans@900: convert jpg:$*.jpg eps:$*.eps hans@900: hans@900: %.eps: %.fig hans@900: fig2dev -L ps -p dummy_arg -z A4 $*.fig > $*.ps hans@900: hans@900: %.dvi: %.tex hans@900: $(LATEX) $*.tex && $(LATEX) $*.tex && $(LATEX) $*.tex hans@900: hans@900: %.ps: %.dvi hans@900: dvips -T 210mm,297mm -o $*.ps $*.dvi hans@900: hans@900: %.pdf: %.ps hans@900: ( echo "<< /AutoFilterColorImages false"; \ hans@900: echo " /EncodeColorImages true"; \ hans@900: echo " /DownsampleColorImages false"; \ hans@900: echo " /ColorImageFilter /FlateEncode"; \ hans@900: echo ">> setdistillerparams" ) \ hans@900: | cat - $*.ps | ps2pdf -sPAPERSIZE=a4 - $*.pdf hans@900: hans@900: %.tif: %.ps hans@900: gs -sDEVICE=tiffg3 -sPapersize=a4 -dNOPAUSE -q -sOutputFile=$*.tif $*.ps -c quit hans@900: hans@900: all: $(DOCUMENTS) hans@900: hans@900: clean: hans@900: rm -f *.bak *.lof *.log *.toc *.aux WARNINGS hans@900: hans@900: dist-clean: clean hans@900: rm -f *.dvi *.pdf