summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <tomas@mc05.(none)>2004-06-04 16:08:50 +0200
committerunknown <tomas@mc05.(none)>2004-06-04 16:08:50 +0200
commit7942677020d36bd5baafd8d765968921f348cdc2 (patch)
tree56882c7753d1e7e19296d6a037d0d65e43513856 /ndb
parentbba051c8090ad6ed310720960ac68bff4b72a3b1 (diff)
downloadmariadb-git-7942677020d36bd5baafd8d765968921f348cdc2.tar.gz
moved ndb versioning to configure and fixed ndb docs make
Diffstat (limited to 'ndb')
-rw-r--r--ndb/docs/Makefile.am24
-rw-r--r--ndb/include/ndb_version.h10
2 files changed, 19 insertions, 15 deletions
diff --git a/ndb/docs/Makefile.am b/ndb/docs/Makefile.am
index 0ece3607a09..fb367fb9345 100644
--- a/ndb/docs/Makefile.am
+++ b/ndb/docs/Makefile.am
@@ -5,19 +5,29 @@ DOXYDIR = doxygen
DOXYTMP = .doxytmp
DOXYOUT = .doxyout
+NDB_RELEASE = @NDB_VERSION_MAJOR@.@NDB_VERSION_MINOR@.@NDB_VERSION_BUILD@-@NDB_VERSION_STATUS@
+
clean:
rm -rf ndbapi.pdf ndbapi.html mgmapi.pdf mgmapi.html
rm -rf $(DOXYTMP) $(DOXYOUT)
do-check:
@set -x; \
- if test $(PERL) = no ; then \
+ if test @PERL@ = no ; then \
echo "Perl needed to make docs"; \
exit 1; \
fi; \
- if test $(DOXYGEN) = no ; then \
+ if test @DOXYGEN@ = no ; then \
echo "Doxygen needed to make docs"; \
exit 1; \
+ fi; \
+ 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;
###
#
@@ -27,9 +37,10 @@ ndbapidoc: ndbapi.pdf
ndbapi.pdf: $(top_srcdir)/ndb/include/ndb_version.h
@set -x; \
+ export NDB_RELEASE=$(NDB_RELEASE) \
@RM@ -f ndbapi.pdf ndbapi.html; \
@RM@ -rf $(DOXYTMP) $(DOXYOUT); \
- @mkdir_p@ $(DOXYTMP) $(DOXYOUT); \
+ mkdir -p $(DOXYTMP) $(DOXYOUT); \
@CP@ $(top_srcdir)/ndb/include/ndbapi/* $(DOXYTMP); \
@CP@ $(top_srcdir)/ndb/examples/*/*.[ch]pp $(DOXYTMP); \
@PERL@ $(DOXYDIR)/predoxy.pl; \
@@ -39,7 +50,7 @@ ndbapi.pdf: $(top_srcdir)/ndb/include/ndb_version.h
(cd $(DOXYOUT) && \
find ndbapi.html -print | cpio -pdm ..); \
(cd $(DOXYOUT)/ndbapi.latex && \
- pdflatex refman.tex && makeindex refman && pdflatex refman.tex && \
+ @PDFLATEX@ refman.tex && @MAKEINDEX@ refman && @PDFLATEX@ refman.tex && \
cp -p refman.pdf ../../ndbapi.pdf);
###
@@ -50,9 +61,10 @@ mgmapidoc: mgmapi.pdf
mgmapi.pdf: $(top_srcdir)/ndb/include/ndb_version.h
@set -x; \
+ export NDB_RELEASE=$(NDB_RELEASE) \
@RM@ -f mgmapi.pdf mgmapi.html; \
@RM@ -rf $(DOXYTMP) $(DOXYOUT); \
- @mkdir_p@ $(DOXYTMP) $(DOXYOUT); \
+ mkdir -p $(DOXYTMP) $(DOXYOUT); \
@CP@ $(top_srcdir)/ndb/include/mgmapi/* $(DOXYTMP); \
@PERL@ $(DOXYDIR)/predoxy.pl; \
mv footer.html $(DOXYTMP); \
@@ -61,7 +73,7 @@ mgmapi.pdf: $(top_srcdir)/ndb/include/ndb_version.h
(cd $(DOXYOUT) && \
find mgmapi.html -print | cpio -pdm ..); \
(cd $(DOXYOUT)/mgmapi.latex && \
- pdflatex refman.tex && makeindex refman && pdflatex refman.tex && \
+ @PDFLATEX@ refman.tex && @MAKEINDEX@ refman && @PDFLATEX@ refman.tex && \
cp -p refman.pdf ../../mgmapi.pdf);
###
diff --git a/ndb/include/ndb_version.h b/ndb/include/ndb_version.h
index 9bb6af59590..56362020ebf 100644
--- a/ndb/include/ndb_version.h
+++ b/ndb/include/ndb_version.h
@@ -17,19 +17,11 @@
#ifndef NDB_VERSION_H
#define NDB_VERSION_H
+#include <ndb_global.h>
#include <version.h>
#define MAKE_VERSION(A,B,C) (((A) << 16) | ((B) << 8) | ((C) << 0))
-/**
- * version of this build
- */
-
-#define NDB_VERSION_MAJOR 3
-#define NDB_VERSION_MINOR 5
-#define NDB_VERSION_BUILD 0
-#define NDB_VERSION_STATUS "alpha"
-
#define NDB_VERSION_D MAKE_VERSION(NDB_VERSION_MAJOR, NDB_VERSION_MINOR, NDB_VERSION_BUILD)
#define NDB_VERSION_STRING (getVersionString(NDB_VERSION, NDB_VERSION_STATUS))