1
# Copyright (C) 2009 Sun Microsystems, Inc.
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.
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.
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
16
ACLOCAL_AMFLAGS = -I m4 --force
18
# includes append to these:
23
nobase_nodist_include_HEADERS =
24
nobase_dist_include_HEADERS =
25
dist_include_HEADERS =
26
nobase_nodist_pkginclude_HEADERS =
27
nobase_dist_pkginclude_HEADERS =
28
dist_pkginclude_HEADERS =
36
VERSION=$(PANDORA_RELEASE_VERSION)
1
# Copyright (C) 2000-2006 MySQL AB
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
ACLOCAL_AMFLAGS = -I m4
18
# Process this file with automake to create Makefile.in
43
DIST_SUBDIRS = ${SUBDIRS} tests
57
config/link-warning.h \
58
config/pandora_vc_revinfo \
60
config/uncrustify.cfg \
62
${top_srcdir}/m4/pandora*m4
65
CLEANFILES= ${BUILT_SOURCES}
66
DISTCLEANFILES= ac_available_languages_fragment \
74
MAINTAINERCLEANFILES= \
79
pkgplugin_LTLIBRARIES=
80
include config/pandora-plugin.am
82
EXTRA_DIST+= ${man_MANS}
89
for f in `find ${top_srcdir} -type f | grep -v innobase |\
90
${EGREP} '\.(cc|c|h)$$' ` ; do \
91
uncrustify -f $$f -c ${top_srcdir}/config/uncrustify.cfg \
92
-o indentoutput.tmp && mv indentoutput.tmp "$$f" ;\
95
BUILT_SOURCES+= drizzled/configmake.h
96
nobase_nodist_pkginclude_HEADERS+= drizzled/configmake.h
97
drizzled/configmake.h: ${top_srcdir}/Makefile.in
100
@{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
101
echo '#define PREFIX "$(prefix)"'; \
102
echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
103
echo '#define BINDIR "$(bindir)"'; \
104
echo '#define SBINDIR "$(sbindir)"'; \
105
echo '#define LIBEXECDIR "$(libexecdir)"'; \
106
echo '#define DATAROOTDIR "$(datarootdir)"'; \
107
echo '#define DATADIR "$(datadir)"'; \
108
echo '#define SYSCONFDIR "$(sysconfdir)"'; \
109
echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
110
echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
111
echo '#define INCLUDEDIR "$(includedir)"'; \
112
echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
113
echo '#define DOCDIR "$(docdir)"'; \
114
echo '#define INFODIR "$(infodir)"'; \
115
echo '#define HTMLDIR "$(htmldir)"'; \
116
echo '#define DVIDIR "$(dvidir)"'; \
117
echo '#define PDFDIR "$(pdfdir)"'; \
118
echo '#define PSDIR "$(psdir)"'; \
119
echo '#define LIBDIR "$(libdir)"'; \
120
echo '#define LISPDIR "$(lispdir)"'; \
121
echo '#define LOCALEDIR "$(localedir)"'; \
122
echo '#define MANDIR "$(mandir)"'; \
123
echo '#define MANEXT "$(manext)"'; \
124
echo '#define PKGDATADIR "$(pkgdatadir)"'; \
125
echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
126
echo '#define PKGLIBDIR "$(pkglibdir)"'; \
127
echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
128
echo '#define PKGPLUGINDIR "$(pkgplugindir)"'; \
129
echo '#undef VERSION'; \
130
echo '#define VERSION "${PANDORA_RELEASE_VERSION}"'; \
131
} | sed '/""/d' > $@-t
132
@if diff $@-t $@ >/dev/null 2>&1 ; then \
35
EXTRA_DIST = config/config.rpath
36
DISTCLEANFILES = ac_available_languages_fragment
38
# Create empty datadir
40
$(mkinstalldirs) $(DESTDIR)$(localstatedir)
41
@if test `id -u` = 0 ; then \
42
groupadd $(DRIZZLED_USER) ;\
43
useradd -g $(DRIZZLED_USER) $(DRIZZLED_USER) ;\
44
chown $(DRIZZLED_USER) $(DESTDIR)$(localstatedir) ;\
139
find . -name '*.gcno' | xargs rm -f
140
-rm -rf docs/api docs/dev docs/_build docs/doctrees
142
include config/lcov.am
144
include docs/include.am
145
include drizzled/message/include.am
146
include drizzled/include.am
147
include drizzled/internal/include.am
148
include drizzled/algorithm/include.am
149
include drizzled/util/include.am
150
include client/include.am
151
include support-files/include.am
152
include tests/include.am
153
include unittests/include.am
154
include libdrizzle/include.am
155
include win32/include.am
157
TESTS += ${check_PROGRAMS}
160
find ./ | $(GREP) \.orig | xargs rm -f
161
find ./ | $(GREP) \.moved | xargs rm -f
162
find ./ | $(GREP) \.rej | xargs rm -f
163
find ./ | $(GREP) \~$$ | xargs rm -f
167
cd $(DESTDIR)$(sbindir) && \
168
mv -f drizzled$(EXEEXT) drizzled7$(EXEEXT) && \
169
$(LN_S) drizzled7$(EXEEXT) drizzled$(EXEEXT)
172
cd $(DESTDIR)$(man8dir) && \
173
mv -f drizzled.8 drizzled7.8 && \
174
$(LN_S) drizzled7.8 drizzled.8
177
rm $(DESTDIR)$(man8dir)/drizzled7.8
178
rm $(DESTDIR)$(sbindir)/drizzled7$(EXEEXT)
48
@RM@ -r -f autom4te.cache
62
test-binlog-statement \
73
# Target 'test' will run the regression test suite using the built server.
75
# If you are running in a shared environment, users can avoid clashing
76
# port numbers by setting individual small numbers 1-100 to the
77
# environment variable MTR_BUILD_THREAD. The script "test-run"
78
# will then calculate the various port numbers it needs from this,
79
# making sure each user use different ports.
83
./test-run $(force) --mysqld=--binlog-format=row
87
./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
89
test-binlog-statement:
91
./test-run $(force) --mysqld=--binlog-format=statement
97
$(MAKE) $(AM_MAKEFLAGS) test