Commit 42d9baf9 authored by unknown's avatar unknown

ndb fixes for make dist


mysql-test/ndb/ndbcluster.sh:
  Change mode to -rw-rw-r--
parent 61540a24
...@@ -1383,6 +1383,11 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [ ...@@ -1383,6 +1383,11 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [
--with-ndb-test Include the NDB Cluster ndbapi test programs], --with-ndb-test Include the NDB Cluster ndbapi test programs],
[ndb_test="$withval"], [ndb_test="$withval"],
[ndb_test=no]) [ndb_test=no])
AC_ARG_WITH([ndb-docs],
[
--with-ndb-docs Include the NDB Cluster ndbapi and mgmapi documentation],
[ndb_docs="$withval"],
[ndb_docs=no])
AC_MSG_CHECKING([for NDB Cluster options]) AC_MSG_CHECKING([for NDB Cluster options])
AC_MSG_RESULT([]) AC_MSG_RESULT([])
...@@ -1422,6 +1427,17 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [ ...@@ -1422,6 +1427,17 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [
;; ;;
esac esac
have_ndb_docs=no
case "$ndb_docs" in
yes )
AC_MSG_RESULT([-- including ndbapi and mgmapi documentation])
have_ndb_docs="yes"
;;
* )
AC_MSG_RESULT([-- not including ndbapi and mgmapi documentation])
;;
esac
AC_MSG_RESULT([done.]) AC_MSG_RESULT([done.])
]) ])
......
...@@ -2919,16 +2919,23 @@ then ...@@ -2919,16 +2919,23 @@ then
fi fi
AC_SUBST([ndb_transporter_opt_objs]) AC_SUBST([ndb_transporter_opt_objs])
ndb_opt_subdirs=
ndb_bin_am_ldflags="-static" ndb_bin_am_ldflags="-static"
if test X"$have_ndb_test" = Xyes if test X"$have_ndb_test" = Xyes
then then
ndb_opt_test_subdirs="test" ndb_opt_subdirs="test"
ndb_bin_am_ldflags=""
fi
if test X"$have_ndb_docs" = Xyes
then
ndb_opt_subdirs="$ndb_opt_subdirs docs"
ndb_bin_am_ldflags="" ndb_bin_am_ldflags=""
fi fi
AC_SUBST([ndb_bin_am_ldflags]) AC_SUBST([ndb_bin_am_ldflags])
AC_SUBST([ndb_opt_test_subdirs]) AC_SUBST([ndb_opt_subdirs])
AC_CONFIG_FILES(ndb/Makefile ndb/include/Makefile dnl AC_CONFIG_FILES(ndb/Makefile ndb/include/Makefile dnl
ndb/src/Makefile ndb/src/common/Makefile dnl ndb/src/Makefile ndb/src/common/Makefile dnl
ndb/docs/Makefile dnl
ndb/tools/Makefile dnl ndb/tools/Makefile dnl
ndb/src/common/debugger/Makefile ndb/src/common/debugger/signaldata/Makefile dnl ndb/src/common/debugger/Makefile ndb/src/common/debugger/signaldata/Makefile dnl
ndb/src/common/portlib/Makefile dnl ndb/src/common/portlib/Makefile dnl
......
...@@ -4,9 +4,9 @@ testdir = $(benchdir_root)/mysql-test/ndb ...@@ -4,9 +4,9 @@ testdir = $(benchdir_root)/mysql-test/ndb
test_SCRIPTS = ndbcluster test_SCRIPTS = ndbcluster
EXTRA_SCRIPTS = ndbcluster.sh noinst_HEADERS = ndbcluster.sh
test_DATA = ndb_config_2_node.ini dist_test_DATA = ndb_config_2_node.ini
SUFFIXES = .sh SUFFIXES = .sh
......
File mode changed from 100755 to 100644
SUBDIRS = src tools . include $(ndb_opt_test_subdirs) SUBDIRS = src tools . include @ndb_opt_subdirs@
DIST_SUBDIRS = src tools include test docs
EXTRA_DIST = config EXTRA_DIST = config
include $(top_srcdir)/ndb/config/common.mk.am include $(top_srcdir)/ndb/config/common.mk.am
......
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 ndbapidoc mgmapidoc all: do-check ndbapidoc mgmapidoc
DOXYDIR = doxygen
DOXYTMP = .doxytmp DOXYTMP = .doxytmp
DOXYOUT = .doxyout DOXYOUT = .doxyout
...@@ -35,7 +36,7 @@ do-check: ...@@ -35,7 +36,7 @@ do-check:
# #
ndbapidoc: ndbapi.pdf ndbapidoc: ndbapi.pdf
ndbapi.pdf: $(top_srcdir)/ndb/include/ndb_version.h ndbapi.pdf: $(noinst_HEADERS)
@set -x; \ @set -x; \
export NDB_RELEASE=$(NDB_RELEASE) \ export NDB_RELEASE=$(NDB_RELEASE) \
@RM@ -f ndbapi.pdf ndbapi.html; \ @RM@ -f ndbapi.pdf ndbapi.html; \
...@@ -59,7 +60,7 @@ ndbapi.pdf: $(top_srcdir)/ndb/include/ndb_version.h ...@@ -59,7 +60,7 @@ ndbapi.pdf: $(top_srcdir)/ndb/include/ndb_version.h
# #
mgmapidoc: mgmapi.pdf mgmapidoc: mgmapi.pdf
mgmapi.pdf: $(top_srcdir)/ndb/include/ndb_version.h mgmapi.pdf: $(noinst_HEADERS)
@set -x; \ @set -x; \
export NDB_RELEASE=$(NDB_RELEASE) \ export NDB_RELEASE=$(NDB_RELEASE) \
@RM@ -f mgmapi.pdf mgmapi.html; \ @RM@ -f mgmapi.pdf mgmapi.html; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment