Makefile.am 3.14 KB
Newer Older
tomas@mc05.(none)'s avatar
tomas@mc05.(none) committed
1 2
DOXYDIR = doxygen
noinst_HEADERS = $(DOXYDIR)/predoxy.pl $(DOXYDIR)/postdoxy.pl $(DOXYDIR)/Doxyfile.ndbapi $(DOXYDIR)/Doxyfile.mgmapi $(DOXYDIR)/header.ndbapi.tex $(DOXYDIR)/header.mgmapi.tex
3

kent@mysql.com's avatar
Merge  
kent@mysql.com committed
4
all-local: 	do-check-html ndbapidoc-html mgmapidoc-html
5
all-pdf: 	do-check-pdf ndbapidoc-pdf mgmapidoc-pdf
6 7 8 9

DOXYTMP =	.doxytmp
DOXYOUT =	.doxyout

10 11
NDB_RELEASE = @NDB_VERSION_MAJOR@.@NDB_VERSION_MINOR@.@NDB_VERSION_BUILD@-@NDB_VERSION_STATUS@

serg@serg.mylan's avatar
serg@serg.mylan committed
12
clean-local:
13 14 15
	rm -rf ndbapi.pdf ndbapi.html mgmapi.pdf mgmapi.html
	rm -rf $(DOXYTMP) $(DOXYOUT)

16
do-check-html:
17
	@set -x; \
18
	if test @PERL@ = no ; then \
19 20 21
	  echo "Perl needed to make docs"; \
	  exit 1; \
	fi; \
22
	if test @DOXYGEN@ = no ; then \
23 24
	  echo "Doxygen needed to make docs"; \
	  exit 1; \
25
	fi;
26 27

do-check-pdf: do-check-html
28 29 30 31 32 33 34
	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; \
35
	fi;
36

37 38 39 40
###
#
#  NDB API Programmer's Guide
#
41 42
ndbapidoc-html: ndbapi.html
ndbapidoc-pdf: ndbapi.pdf
43

44
ndbapi.html: $(noinst_HEADERS)
45
	@set -x; \
tomas@poseidon.ndb.mysql.com's avatar
tomas@poseidon.ndb.mysql.com committed
46
	export NDB_RELEASE=$(NDB_RELEASE); \
47 48
	@RM@ -f ndbapi.pdf ndbapi.html; \
	@RM@ -rf $(DOXYTMP) $(DOXYOUT); \
49
	mkdir -p $(DOXYTMP) $(DOXYOUT); \
50
	@CP@ $(top_srcdir)/ndb/include/ndbapi/*  $(DOXYTMP); \
tomas@poseidon.ndb.mysql.com's avatar
tomas@poseidon.ndb.mysql.com committed
51
	@CP@ $(top_srcdir)/ndb/ndbapi-examples/*/*.[ch]pp $(DOXYTMP); \
52 53 54
	@PERL@ $(DOXYDIR)/predoxy.pl; \
	mv footer.html $(DOXYTMP); \
	(cd $(DOXYTMP) ; @DOXYGEN@ ../$(DOXYDIR)/Doxyfile.ndbapi); \
tulin@build.mysql.com's avatar
tulin@build.mysql.com committed
55
	@PERL@ $(DOXYDIR)/postdoxy.pl $(DOXYOUT)/ndbapi.latex "MySQL Cluster NDB API Programmer Guide"; \
56
	(cd $(DOXYOUT) && \
57
		find ndbapi.html -print | cpio -pdm ..);
58 59

ndbapi.pdf: ndbapi.html
60
	(cd $(DOXYOUT)/ndbapi.latex && \
61
		@PDFLATEX@ refman.tex && @MAKEINDEX@ refman && @PDFLATEX@ refman.tex && \
62 63 64 65 66 67
		cp -p refman.pdf ../../ndbapi.pdf);

###
#
#  MGM API Guide
#
68 69
mgmapidoc-html: mgmapi.html
mgmapidoc-pdf: mgmapi.pdf
70

71
mgmapi.html: $(noinst_HEADERS)
72
	@set -x; \
tomas@poseidon.ndb.mysql.com's avatar
tomas@poseidon.ndb.mysql.com committed
73
	export NDB_RELEASE=$(NDB_RELEASE); \
74 75
	@RM@ -f mgmapi.pdf mgmapi.html; \
	@RM@ -rf $(DOXYTMP) $(DOXYOUT); \
76
	mkdir -p $(DOXYTMP) $(DOXYOUT); \
77 78 79 80
	@CP@ $(top_srcdir)/ndb/include/mgmapi/*  $(DOXYTMP); \
	@PERL@ $(DOXYDIR)/predoxy.pl; \
	mv footer.html $(DOXYTMP); \
	(cd $(DOXYTMP) ; @DOXYGEN@ ../$(DOXYDIR)/Doxyfile.mgmapi); \
tulin@build.mysql.com's avatar
tulin@build.mysql.com committed
81
	@PERL@ $(DOXYDIR)/postdoxy.pl $(DOXYOUT)/mgmapi.latex "MySQL Cluster MGM API Guide"; \
82
	(cd $(DOXYOUT) && \
83
		find mgmapi.html -print | cpio -pdm ..);
84 85

mgmapi.pdf: mgmapi.html
86
	(cd $(DOXYOUT)/mgmapi.latex && \
87
		@PDFLATEX@ refman.tex && @MAKEINDEX@ refman && @PDFLATEX@ refman.tex && \
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
		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
joreland@mysql.com's avatar
joreland@mysql.com committed
113 114

windoze-dsp: