summaryrefslogtreecommitdiff
path: root/storage/ndb/docs/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'storage/ndb/docs/Makefile.am')
-rw-r--r--storage/ndb/docs/Makefile.am114
1 files changed, 114 insertions, 0 deletions
diff --git a/storage/ndb/docs/Makefile.am b/storage/ndb/docs/Makefile.am
new file mode 100644
index 00000000000..afa91857771
--- /dev/null
+++ b/storage/ndb/docs/Makefile.am
@@ -0,0 +1,114 @@
+DOXYDIR = doxygen
+noinst_HEADERS = $(DOXYDIR)/predoxy.pl $(DOXYDIR)/postdoxy.pl $(DOXYDIR)/Doxyfile.ndbapi $(DOXYDIR)/Doxyfile.mgmapi $(DOXYDIR)/header.ndbapi.tex $(DOXYDIR)/header.mgmapi.tex
+
+all: do-check-html ndbapidoc-html mgmapidoc-html
+all-pdf: do-check-pdf ndbapidoc-pdf mgmapidoc-pdf
+
+DOXYTMP = .doxytmp
+DOXYOUT = .doxyout
+
+NDB_RELEASE = @NDB_VERSION_MAJOR@.@NDB_VERSION_MINOR@.@NDB_VERSION_BUILD@-@NDB_VERSION_STATUS@
+
+clean-local:
+ rm -rf ndbapi.pdf ndbapi.html mgmapi.pdf mgmapi.html
+ rm -rf $(DOXYTMP) $(DOXYOUT)
+
+do-check-html:
+ @set -x; \
+ if test @PERL@ = no ; then \
+ echo "Perl needed to make docs"; \
+ exit 1; \
+ fi; \
+ if test @DOXYGEN@ = no ; then \
+ echo "Doxygen needed to make docs"; \
+ exit 1; \
+ fi;
+
+do-check-pdf: do-check-html
+ if test @PDFLATEX@ = no ; then \
+ echo "Pdflatex needed to make docs"; \
+ exit 1; \
+ fi; \
+ if test @MAKEINDEX@ = no ; then \
+ echo "Makeindex needed to make docs"; \
+ exit 1; \
+ fi;
+
+###
+#
+# NDB API Programmer's Guide
+#
+ndbapidoc-html: ndbapi.html
+ndbapidoc-pdf: ndbapi.pdf
+
+ndbapi.html: $(noinst_HEADERS)
+ @set -x; \
+ export NDB_RELEASE=$(NDB_RELEASE); \
+ @RM@ -f ndbapi.pdf ndbapi.html; \
+ @RM@ -rf $(DOXYTMP) $(DOXYOUT); \
+ mkdir -p $(DOXYTMP) $(DOXYOUT); \
+ @CP@ $(top_srcdir)/ndb/include/ndbapi/* $(DOXYTMP); \
+ @CP@ $(top_srcdir)/ndb/ndbapi-examples/*/*.[ch]pp $(DOXYTMP); \
+ @PERL@ $(DOXYDIR)/predoxy.pl; \
+ mv footer.html $(DOXYTMP); \
+ (cd $(DOXYTMP) ; @DOXYGEN@ ../$(DOXYDIR)/Doxyfile.ndbapi); \
+ @PERL@ $(DOXYDIR)/postdoxy.pl $(DOXYOUT)/ndbapi.latex "MySQL Cluster NDB API Programmer Guide"; \
+ (cd $(DOXYOUT) && \
+ find ndbapi.html -print | cpio -pdm ..);
+
+ndbapi.pdf: ndbapi.html
+ (cd $(DOXYOUT)/ndbapi.latex && \
+ @PDFLATEX@ refman.tex && @MAKEINDEX@ refman && @PDFLATEX@ refman.tex && \
+ cp -p refman.pdf ../../ndbapi.pdf);
+
+###
+#
+# MGM API Guide
+#
+mgmapidoc-html: mgmapi.html
+mgmapidoc-pdf: mgmapi.pdf
+
+mgmapi.html: $(noinst_HEADERS)
+ @set -x; \
+ export NDB_RELEASE=$(NDB_RELEASE); \
+ @RM@ -f mgmapi.pdf mgmapi.html; \
+ @RM@ -rf $(DOXYTMP) $(DOXYOUT); \
+ mkdir -p $(DOXYTMP) $(DOXYOUT); \
+ @CP@ $(top_srcdir)/ndb/include/mgmapi/* $(DOXYTMP); \
+ @PERL@ $(DOXYDIR)/predoxy.pl; \
+ mv footer.html $(DOXYTMP); \
+ (cd $(DOXYTMP) ; @DOXYGEN@ ../$(DOXYDIR)/Doxyfile.mgmapi); \
+ @PERL@ $(DOXYDIR)/postdoxy.pl $(DOXYOUT)/mgmapi.latex "MySQL Cluster MGM API Guide"; \
+ (cd $(DOXYOUT) && \
+ find mgmapi.html -print | cpio -pdm ..);
+
+mgmapi.pdf: mgmapi.html
+ (cd $(DOXYOUT)/mgmapi.latex && \
+ @PDFLATEX@ refman.tex && @MAKEINDEX@ refman && @PDFLATEX@ refman.tex && \
+ cp -p refman.pdf ../../mgmapi.pdf);
+
+###
+#
+# Complete Source Browser except for
+# ndbapi odbc test tools win32 lib examples docs CVS config bin
+# include/ndbapi
+# include/newtonapi src/newtonapi
+# include/mgmapi src/mgmapi
+# src/client
+ndbdoc: DUMMY
+ mkdir -p $(OUTDIR)
+ cd $(top_srcdir)/ndb ; $(DOXYGEN) $(DOXYDIR)/Doxyfile.ndb
+
+###
+#
+# odbcdoc - Complete Source Browser for NDB ODBC (src/client/odbc)
+
+odbcdoc: DUMMY
+ mkdir -p $(OUTDIR)
+ cd $(top_srcdir)/ndb ; $(DOXYGEN) $(DOXYDIR)/Doxyfile.odbc
+
+testdoc: DUMMY
+ mkdir -p $(OUTDIR)
+ cd $(top_srcdir)/ndb ; $(DOXYGEN) $(DOXYDIR)/Doxyfile.test
+
+windoze-dsp: