]> www.ginac.de Git - ginac.git/blob - doc/reference/Makefile.am
* Last week, the FSF has moved their office.
[ginac.git] / doc / reference / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # Targets
4 html: html_files/index.html
5 dvi: reference.dvi
6 ps: reference.ps
7 pdf: reference.pdf
8
9 # This section produces HTML'ed and TeX'ed developer's reference from the
10 # sources with a JavaDoc-like tool (in this case doxygen):
11 html_files::
12         @[ -d html_files ] || mkdir html_files >/dev/null 2>&1
13
14 html_files/index.html:
15         @if [ "${DOXYGEN}" ]; then \
16           echo "Running ${DOXYGEN} DoxyfileHTML..."; \
17           ${DOXYGEN} DoxyfileHTML; \
18         else \
19           echo "warning: target reference_html disabled by configuration"; \
20         fi
21
22 latex::
23         @[ -d latex ] || mkdir latex >/dev/null 2>&1
24
25 latex/reference.tex:
26         @if [ "${DOXYGEN}" ]; then \
27           echo "Running ${DOXYGEN} DoxyfileTEX..."; \
28           ${DOXYGEN} DoxyfileTEX; \
29           mv latex/refman.tex latex/reference.tex; \
30         else \
31           echo "warning: target reference.tex disabled by configuration"; \
32         fi
33
34 latex/reference.dvi: latex/reference.tex
35         @if [ "${LATEX}" -a "${MAKEINDEX}" ]; then \
36           (cd latex; \
37           ${LATEX} reference.tex && \
38           ${MAKEINDEX} reference.idx && \
39           ${LATEX} reference.tex); \
40         else \
41           echo "warning: target reference.dvi disabled by configuration"; \
42         fi
43
44 latex/reference.ps: latex/reference.dvi
45         @if [ "${DVIPS}" ]; then \
46           echo "Running ${DVIPS} -o reference.ps reference.dvi..."; \
47           (cd latex; ${DVIPS} -o reference.ps reference.dvi); \
48         else \
49           echo "warning: target reference.ps disabled by configuration"; \
50         fi
51
52 pdflatex::
53         @[ -d pdflatex ] || mkdir pdflatex >/dev/null 2>&1
54
55 pdflatex/reference.tex:
56         @if [ "${DOXYGEN}" ]; then \
57           echo "Running ${DOXYGEN} DoxyfilePDF..."; \
58           ${DOXYGEN} DoxyfilePDF; \
59           mv pdflatex/refman.tex pdflatex/reference.tex; \
60         else \
61           echo "warning: target reference.pdf disabled by configuration"; \
62         fi
63
64 pdflatex/reference.pdf: pdflatex/reference.tex
65         @if [ "${PDFLATEX}" -a "${MAKEINDEX}" ]; then \
66           (cd pdflatex; \
67           ${PDFLATEX} reference.tex && \
68           ${MAKEINDEX} reference.idx && \
69           ${PDFLATEX} reference.tex); \
70         else \
71           echo "warning: target reference.pdf disabled by configuration"; \
72         fi
73
74 reference.dvi: latex latex/reference.dvi
75         cp latex/reference.dvi reference.dvi
76
77 reference.ps: latex latex/reference.ps
78         cp latex/reference.ps reference.ps
79
80 reference.pdf: pdflatex pdflatex/reference.pdf
81         cp pdflatex/reference.pdf reference.pdf
82
83 CLEANFILES = reference.dvi reference.ps reference.pdf html_files/* latex/* pdflatex/*