blob: ba1eb762334a6c392edb8dc9bac9fd1539594f7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{% if config.USE_PDFLATEX %}
all: refman.pdf
pdf: refman.pdf
refman.pdf: clean refman.tex
pdflatex refman
{{ config.MAKEINDEX_CMD_NAME }} refman.idx
{# TODO: generateBib #}
pdflatex refman
latex_count=8 ; \
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
do \
echo "Rerunning latex...." ;\
pdflatex refman ;\
latex_count=`expr $$latex_count - 1` ;\
done
{{ config.MAKEINDEX_CMD_NAME }} refman.idx
pdflatex refman
{% else %}
all: refman.dvi
ps: refman.ps
pdf: refman.pdf
ps_2on1: refman_2on1.ps
pdf_2on1: refman_2on1.pdf
refman.ps: refman.dvi
dvips -o refman.ps refman.dvi
refman.pdf: refman.ps
ps2pdf refman.ps refman.pdf
refman.dvi: clean refman.tex doxygen.sty
echo "Running latex..."
{{ config.LATEX_CMD_NAME }} refman.tex
echo "Running makeindex..."
{{ config.MAKEINDEX_CMD_NAME }} refman.idx
{# TODO: generateBib #}
echo "Rerunning latex...."
{{ config.LATEX_CMD_NAME }} refman.tex
latex_count=8 ; \
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
do \
echo "Rerunning latex...." ;\
{{ config.LATEX_CMD_NAME }} refman.tex ;\
latex_count=`expr $$latex_count - 1` ;\
done
{{ config.MAKEINDEX_CMD_NAME }} refman.idx
{{ config.LATEX_CMD_NAME }} refman.tex
refman_2on1.ps: refman.ps
psnup -2 refman.ps >refman_2on1.ps
refman_2on1.pdf: refman_2on1.ps
ps2pdf refman_2on1.ps refman_2on1.pdf
{% endif %}
clean:
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
|