~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to storage/ndb/docs/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2004-2005 MySQL AB
 
2
 
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.
 
6
 
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.
 
11
 
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
 
15
 
 
16
DOXYDIR = doxygen
 
17
noinst_HEADERS = $(DOXYDIR)/predoxy.pl $(DOXYDIR)/postdoxy.pl $(DOXYDIR)/Doxyfile.ndbapi $(DOXYDIR)/Doxyfile.mgmapi $(DOXYDIR)/header.ndbapi.tex $(DOXYDIR)/header.mgmapi.tex
 
18
 
 
19
all-local:      do-check-html ndbapidoc-html mgmapidoc-html
 
20
all-pdf:        do-check-pdf ndbapidoc-pdf mgmapidoc-pdf
 
21
 
 
22
DOXYTMP =       .doxytmp
 
23
DOXYOUT =       .doxyout
 
24
 
 
25
NDB_RELEASE = @NDB_VERSION_MAJOR@.@NDB_VERSION_MINOR@.@NDB_VERSION_BUILD@-@NDB_VERSION_STATUS@
 
26
 
 
27
clean-local:
 
28
        rm -rf ndbapi.pdf ndbapi.html mgmapi.pdf mgmapi.html
 
29
        rm -rf $(DOXYTMP) $(DOXYOUT)
 
30
 
 
31
do-check-html:
 
32
        @set -x; \
 
33
        if test @PERL@ = no ; then \
 
34
          echo "Perl needed to make docs"; \
 
35
          exit 1; \
 
36
        fi; \
 
37
        if test @DOXYGEN@ = no ; then \
 
38
          echo "Doxygen needed to make docs"; \
 
39
          exit 1; \
 
40
        fi;
 
41
 
 
42
do-check-pdf: do-check-html
 
43
        if test @PDFLATEX@ = no ; then \
 
44
          echo "Pdflatex needed to make docs"; \
 
45
          exit 1; \
 
46
        fi; \
 
47
        if test @MAKEINDEX@ = no ; then \
 
48
          echo "Makeindex needed to make docs"; \
 
49
          exit 1; \
 
50
        fi;
 
51
 
 
52
###
 
53
#
 
54
#  NDB API Programmer's Guide
 
55
#
 
56
ndbapidoc-html: ndbapi.html
 
57
ndbapidoc-pdf: ndbapi.pdf
 
58
 
 
59
ndbapi.html: $(noinst_HEADERS)
 
60
        @set -x; \
 
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"; \
 
71
        (cd $(DOXYOUT) && \
 
72
                find ndbapi.html -print | cpio -pdm ..);
 
73
 
 
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);
 
78
 
 
79
###
 
80
#
 
81
#  MGM API Guide
 
82
#
 
83
mgmapidoc-html: mgmapi.html
 
84
mgmapidoc-pdf: mgmapi.pdf
 
85
 
 
86
mgmapi.html: $(noinst_HEADERS)
 
87
        @set -x; \
 
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"; \
 
97
        (cd $(DOXYOUT) && \
 
98
                find mgmapi.html -print | cpio -pdm ..);
 
99
 
 
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);
 
104
 
 
105
###
 
106
#  
 
107
#  Complete Source Browser except for 
 
108
#        ndbapi odbc test tools win32 lib examples docs CVS config bin 
 
109
#        include/ndbapi 
 
110
#        include/newtonapi src/newtonapi
 
111
#        include/mgmapi src/mgmapi
 
112
#        src/client
 
113
ndbdoc: DUMMY
 
114
        mkdir -p $(OUTDIR)
 
115
        cd $(top_srcdir)/storage/ndb ; $(DOXYGEN) $(DOXYDIR)/Doxyfile.ndb
 
116
 
 
117
###
 
118
#
 
119
#  odbcdoc - Complete Source Browser for NDB ODBC (src/client/odbc)
 
120
 
 
121
odbcdoc: DUMMY
 
122
        mkdir -p $(OUTDIR)
 
123
        cd $(top_srcdir)/storage/ndb ; $(DOXYGEN) $(DOXYDIR)/Doxyfile.odbc
 
124
 
 
125
testdoc: DUMMY
 
126
        mkdir -p $(OUTDIR)
 
127
        cd $(top_srcdir)/storage/ndb ; $(DOXYGEN) $(DOXYDIR)/Doxyfile.test
 
128
 
 
129
windoze-dsp:
 
130
 
 
131
# Don't update the files from bitkeeper
 
132
%::SCCS/s.%