- Changed a few switches.
[ginac.git] / doc / reference / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # This section produces HTML'ed and TeX'ed developer's reference from the
4 # sources with a JavaDoc-like tool (in this case doxygen):
5 index.html:
6         @if [ "${DOXYGEN}" ]; then \
7           echo "Running ${DOXYGEN} DoxyfileHTML..."; \
8           ${DOXYGEN} DoxyfileHTML; \
9         else \
10           echo "warning: target reference_html disabled by configuration"; \
11         fi
12
13 latex::
14         @[ -d ${srcdir}/latex ] || mkdir ${srcdir}/latex >/dev/null 2>&1
15
16 latex/reference.tex:
17         @if [ "${DOXYGEN}" ]; then \
18           echo "Running ${DOXYGEN} DoxyfileTEX..."; \
19           ${DOXYGEN} DoxyfileTEX; \
20           mv ${srcdir}/latex/refman.tex ${srcdir}/latex/reference.tex; \
21         else \
22           echo "warning: target reference.tex disabled by configuration"; \
23         fi
24
25 latex/reference.dvi: latex/reference.tex
26         @if [ "${LATEX}" -a "${MAKEINDEX}" ]; then \
27           (cd ${srcdir}/latex; \
28           ${LATEX} reference.tex && \
29           ${MAKEINDEX} reference.idx && \
30           ${LATEX} reference.tex); \
31         else \
32           echo "warning: target reference.dvi disabled by configuration"; \
33         fi
34
35 latex/reference.ps: latex/reference.dvi
36         @if [ "${DVIPS}" ]; then \
37           echo "Running ${DVIPS} -o reference.ps reference.dvi..."; \
38           (cd ${srcdir}/latex; ${DVIPS} -o reference.ps reference.dvi); \
39         else \
40           echo "warning: target reference.ps disabled by configuration"; \
41         fi
42
43 reference.ps: latex latex/reference.ps
44         cp ${srcdir}/latex/reference.ps reference.ps
45
46 ginacdocdir = $(datadir)/doc/GiNaC
47 ginacreferencedir = $(ginacdocdir)/reference
48 ginacreference_DATA = @REFERENCE_TARGETS@
49
50 CLEANFILES = *.html *.gif doxygen.css *.ps latex/*
51 EXTRA_DIST = DoxyfileHTML DoxyfileTEX Doxyfooter
52
53 install-data-local:
54         @if [ -f $(srcdir)/doxygen.css ]; then \
55           echo " $(INSTALL_DATA) $(srcdir)/doxygen.css $(DESTDIR)$(ginacreferencedir)/doxygen.css"; \
56           $(INSTALL_DATA) $(srcdir)/doxygen.css $(DESTDIR)$(ginacreferencedir)/doxygen.css; \
57         fi
58         @for p in *.html; do \
59           if [ -f $(srcdir)/$$p ]; then \
60             echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
61             $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
62           fi; \
63         done
64         @for p in *.gif; do \
65           if [ -f $(srcdir)/$$p ]; then \
66             echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
67             $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
68           fi; \
69         done
70
71 uninstall-local:
72         rm -f $(DESTDIR)$(ginacreferencedir)/doxygen.css
73         @for p in *.html; do \
74           echo " rm -f $(DESTDIR)$(ginacreferencedir)/$$p"; \
75           rm -f $(DESTDIR)$(ginacreferencedir)/$$p; \
76         done
77         @for p in *.gif; do \
78           echo " rm -f $(DESTDIR)$(ginacreferencedir)/$$p"; \
79           rm -f $(DESTDIR)$(ginacreferencedir)/$$p; \
80         done