Code

Moved to trunk/branches/tags structure
[gosa.git] / doc / latex / Makefile
1 all: refman.dvi
3 ps: refman.ps
5 pdf: refman.pdf
7 ps_2on1: refman_2on1.ps
9 pdf_2on1: refman_2on1.pdf
11 refman.ps: refman.dvi
12         dvips -o refman.ps refman.dvi
14 refman.pdf: refman.ps
15         ps2pdf refman.ps refman.pdf
17 refman.dvi: refman.tex doxygen.sty
18         echo "Running latex..."
19         latex refman.tex
20         echo "Running makeindex..."
21         makeindex refman.idx
22         echo "Rerunning latex...."
23         latex refman.tex
24         latex_count=5 ; \
25         while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
26             do \
27               echo "Rerunning latex...." ;\
28               latex refman.tex ;\
29               latex_count=`expr $$latex_count - 1` ;\
30             done
32 refman_2on1.ps: refman.ps
33         psnup -2 refman.ps >refman_2on1.ps
35 refman_2on1.pdf: refman_2on1.ps
36         ps2pdf refman_2on1.ps refman_2on1.pdf
38 clean:
39         rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out