1
# Copyright (C) 2004-2005 MySQL AB
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 2 of the License.
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU General Public License for more details.
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
noinst_HEADERS = $(DOXYDIR)/predoxy.pl $(DOXYDIR)/postdoxy.pl $(DOXYDIR)/Doxyfile.ndbapi $(DOXYDIR)/Doxyfile.mgmapi $(DOXYDIR)/header.ndbapi.tex $(DOXYDIR)/header.mgmapi.tex
19
all-local: do-check-html ndbapidoc-html mgmapidoc-html
20
all-pdf: do-check-pdf ndbapidoc-pdf mgmapidoc-pdf
25
NDB_RELEASE = @NDB_VERSION_MAJOR@.@NDB_VERSION_MINOR@.@NDB_VERSION_BUILD@-@NDB_VERSION_STATUS@
28
rm -rf ndbapi.pdf ndbapi.html mgmapi.pdf mgmapi.html
29
rm -rf $(DOXYTMP) $(DOXYOUT)
33
if test @PERL@ = no ; then \
34
echo "Perl needed to make docs"; \
37
if test @DOXYGEN@ = no ; then \
38
echo "Doxygen needed to make docs"; \
42
do-check-pdf: do-check-html
43
if test @PDFLATEX@ = no ; then \
44
echo "Pdflatex needed to make docs"; \
47
if test @MAKEINDEX@ = no ; then \
48
echo "Makeindex needed to make docs"; \
54
# NDB API Programmer's Guide
56
ndbapidoc-html: ndbapi.html
57
ndbapidoc-pdf: ndbapi.pdf
59
ndbapi.html: $(noinst_HEADERS)
61
export NDB_RELEASE=$(NDB_RELEASE); \
62
@RM@ -f ndbapi.pdf ndbapi.html; \
63
@RM@ -rf $(DOXYTMP) $(DOXYOUT); \
64
mkdir -p $(DOXYTMP) $(DOXYOUT); \
65
@CP@ $(top_srcdir)/storage/ndb/include/ndbapi/* $(DOXYTMP); \
66
@CP@ $(top_srcdir)/storage/ndb/ndbapi-examples/*/*.[ch]pp $(DOXYTMP); \
67
@PERL@ $(DOXYDIR)/predoxy.pl; \
68
mv footer.html $(DOXYTMP); \
69
(cd $(DOXYTMP) ; @DOXYGEN@ ../$(DOXYDIR)/Doxyfile.ndbapi); \
70
@PERL@ $(DOXYDIR)/postdoxy.pl $(DOXYOUT)/ndbapi.latex "MySQL Cluster NDB API Programmer Guide"; \
72
find ndbapi.html -print | cpio -pdm ..);
74
ndbapi.pdf: ndbapi.html
75
(cd $(DOXYOUT)/ndbapi.latex && \
76
@PDFLATEX@ refman.tex && @MAKEINDEX@ refman && @PDFLATEX@ refman.tex && \
77
cp -p refman.pdf ../../ndbapi.pdf);
83
mgmapidoc-html: mgmapi.html
84
mgmapidoc-pdf: mgmapi.pdf
86
mgmapi.html: $(noinst_HEADERS)
88
export NDB_RELEASE=$(NDB_RELEASE); \
89
@RM@ -f mgmapi.pdf mgmapi.html; \
90
@RM@ -rf $(DOXYTMP) $(DOXYOUT); \
91
mkdir -p $(DOXYTMP) $(DOXYOUT); \
92
@CP@ $(top_srcdir)/storage/ndb/include/mgmapi/* $(DOXYTMP); \
93
@PERL@ $(DOXYDIR)/predoxy.pl; \
94
mv footer.html $(DOXYTMP); \
95
(cd $(DOXYTMP) ; @DOXYGEN@ ../$(DOXYDIR)/Doxyfile.mgmapi); \
96
@PERL@ $(DOXYDIR)/postdoxy.pl $(DOXYOUT)/mgmapi.latex "MySQL Cluster MGM API Guide"; \
98
find mgmapi.html -print | cpio -pdm ..);
100
mgmapi.pdf: mgmapi.html
101
(cd $(DOXYOUT)/mgmapi.latex && \
102
@PDFLATEX@ refman.tex && @MAKEINDEX@ refman && @PDFLATEX@ refman.tex && \
103
cp -p refman.pdf ../../mgmapi.pdf);
107
# Complete Source Browser except for
108
# ndbapi odbc test tools win32 lib examples docs CVS config bin
110
# include/newtonapi src/newtonapi
111
# include/mgmapi src/mgmapi
115
cd $(top_srcdir)/storage/ndb ; $(DOXYGEN) $(DOXYDIR)/Doxyfile.ndb
119
# odbcdoc - Complete Source Browser for NDB ODBC (src/client/odbc)
123
cd $(top_srcdir)/storage/ndb ; $(DOXYGEN) $(DOXYDIR)/Doxyfile.odbc
127
cd $(top_srcdir)/storage/ndb ; $(DOXYGEN) $(DOXYDIR)/Doxyfile.test
131
# Don't update the files from bitkeeper