bf2da91dd2384c7ad19755b04e9ebfc075dba208
[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
31 latex/reference.dvi: latex/reference.tex
32         @set -e ;\
33           cd latex; \
34           ${LATEX} reference.tex ; \
35           ${MAKEINDEX} reference.idx ; \
36           ${LATEX} reference.tex
37
38 latex/reference.ps: latex/reference.dvi
39         @echo "Running ${DVIPS} -o reference.ps reference.dvi..."; \
40           cd latex; ${DVIPS} -o reference.ps reference.dvi
41
42 pdflatex::
43         @[ -d pdflatex ] || mkdir pdflatex >/dev/null 2>&1
44
45 pdflatex/reference.tex:
46         @echo "Running ${DOXYGEN} DoxyfilePDF..."; \
47           ${DOXYGEN} DoxyfilePDF; \
48           mv pdflatex/refman.tex pdflatex/reference.tex
49
50 pdflatex/reference.pdf: pdflatex/reference.tex
51         @set -e ; \
52                 cd pdflatex; \
53           ${PDFLATEX} reference.tex ;\
54           ${MAKEINDEX} reference.idx ;\
55           ${PDFLATEX} reference.tex
56
57 reference.dvi: latex latex/reference.dvi
58         cp latex/reference.dvi reference.dvi
59
60 reference.ps: latex latex/reference.ps
61         cp latex/reference.ps reference.ps
62
63 reference.pdf: pdflatex pdflatex/reference.pdf
64         cp pdflatex/reference.pdf reference.pdf
65 endif 
66 ## CONFIG_TEX
67
68 endif
69 ## CONFIG_DOXYGEN
70
71 CLEANFILES = reference.dvi reference.ps reference.pdf html_files/* latex/* pdflatex/*