Update some references.
[ginac.git] / doc / reference / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # Targets
4 if CONFIG_DOXYGEN
5 html: html_files/index.html
6
7 if CONFIG_TEX
8 dvi: reference.dvi
9 ps: reference.ps
10 pdf: reference.pdf
11 endif
12
13
14 # This section produces HTML'ed and TeX'ed developer's reference from the
15 # sources with a JavaDoc-like tool (in this case doxygen):
16 html_files::
17         @[ -d html_files ] || mkdir html_files >/dev/null 2>&1
18
19 html_files/index.html:
20           @echo "Running ${DOXYGEN} DoxyfileHTML..."; \
21           ${DOXYGEN} DoxyfileHTML
22
23 if CONFIG_TEX
24 latex::
25         @[ -d latex ] || mkdir latex >/dev/null 2>&1
26
27 latex/reference.tex:
28         @echo "Running ${DOXYGEN} DoxyfileTEX..."; \
29           ${DOXYGEN} DoxyfileTEX; \
30           mv latex/refman.tex latex/reference.tex
31
32 latex/reference.dvi: latex/reference.tex
33         @set -e ;\
34           cd latex; \
35           ${LATEX} reference.tex ; \
36           ${MAKEINDEX} reference.idx ; \
37           ${LATEX} reference.tex
38
39 latex/reference.ps: latex/reference.dvi
40         @echo "Running ${DVIPS} -o reference.ps reference.dvi..."; \
41           cd latex; ${DVIPS} -o reference.ps reference.dvi
42
43 pdflatex::
44         @[ -d pdflatex ] || mkdir pdflatex >/dev/null 2>&1
45
46 pdflatex/reference.tex:
47         @echo "Running ${DOXYGEN} DoxyfilePDF..."; \
48           ${DOXYGEN} DoxyfilePDF; \
49           mv pdflatex/refman.tex pdflatex/reference.tex
50
51 pdflatex/reference.pdf: pdflatex/reference.tex
52         @set -e ; \
53                 cd pdflatex; \
54           ${PDFLATEX} reference.tex ;\
55           ${MAKEINDEX} reference.idx ;\
56           ${PYTHON} $(abs_top_srcdir)/scripts/fixupind.py reference.ind; \
57           ${PDFLATEX} reference.tex
58
59 reference.dvi: latex latex/reference.dvi
60         cp latex/reference.dvi reference.dvi
61
62 reference.ps: latex latex/reference.ps
63         cp latex/reference.ps reference.ps
64
65 reference.pdf: pdflatex pdflatex/reference.pdf
66         cp pdflatex/reference.pdf reference.pdf
67 endif 
68 ## CONFIG_TEX
69
70 endif
71 ## CONFIG_DOXYGEN
72
73 CLEANFILES = reference.dvi reference.ps reference.pdf html_files/* latex/* pdflatex/*
74 EXTRA_DIST = CMakeLists.txt