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