1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
# test
# # Copyright (C) 2000-2006 MySQL AB
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
ACLOCAL_AMFLAGS = -I m4 --force
# Process this file with automake to create Makefile.in
if BUILD_GETTEXT
po=po
endif
SUBDIRS = ${po} . \
gnulib \
mystrings \
mysys \
extra \
libdrizzleclient \
client \
drizzled/serialize \
storage \
plugin \
drizzled \
tests \
support-files
EXTRA_DIST = config/config.rpath m4/gnulib-cache.m4
CLEANFILES = drizzled/configmake.h
DISTCLEANFILES = ac_available_languages_fragment
MAINTAINERCLEANFILES = autom4te.cache
BUILT_SOURCES = drizzled/configmake.h
noinst_HEADERS = drizzled/configmake.h
# Create empty datadir
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(localstatedir)
@if test `id -u` = 0 ; then \
if test -n "$(GROUPADD)" && test -n "$(USERADD)"; then \
$(GROUPADD) $(DRIZZLED_USER) ;\
$(USERADD) -g $(DRIZZLED_USER) $(DRIZZLED_USER) ;\
chown $(DRIZZLED_USER) $(DESTDIR)$(localstatedir) ;\
fi \
fi
.PHONY: test \
test-force \
test-full \
test-force-full \
test-force-mem \
test-pl \
test-force-pl \
test-full-pl \
test-force-full-pl \
test-force-pl-mem \
test-ps test-nr \
test-pr test-ns \
test-binlog-statement \
test-ext-funcs \
test-ext-rpl \
test-ext-jp \
test-ext-stress \
test-ext \
test-fast \
test-fast-cursor \
test-fast-view \
test-full-qa \
indent
# Target 'test' will run the regression test suite using the built server.
#
# If you are running in a shared environment, users can avoid clashing
# port numbers by setting individual small numbers 1-100 to the
# environment variable MTR_BUILD_THREAD. The script "test-run"
# will then calculate the various port numbers it needs from this,
# making sure each user use different ports.
test-nr:
cd tests ; \
./test-run $(force) --mysqld=--binlog-format=row
test-ns:
cd tests ; \
./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
test-binlog-statement:
cd tests ; \
./test-run $(force) --mysqld=--binlog-format=statement
test: test-drizzle
test-drizzle:
cd tests ; \
$(MAKE) $(AM_MAKEFLAGS) test
doxygen:
doxygen Doxyfile
indent:
for f in `find ${top_srcdir} -type f | grep -v innobase |\
${EGREP} '\.(cc|c|h)$$' ` ; do \
uncrustify -f $$f -c ${top_srcdir}/config/uncrustify.cfg \
-o indentoutput.tmp && mv indentoutput.tmp "$$f" ;\
done
drizzled/configmake.h: ${top_srcdir}/Makefile.in
@echo "Making $@"
@rm -f $@-t $@
@{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo '#define PREFIX "$(prefix)"'; \
echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
echo '#define BINDIR "$(bindir)"'; \
echo '#define SBINDIR "$(sbindir)"'; \
echo '#define LIBEXECDIR "$(libexecdir)"'; \
echo '#define DATAROOTDIR "$(datarootdir)"'; \
echo '#define DATADIR "$(datadir)"'; \
echo '#define SYSCONFDIR "$(sysconfdir)"'; \
echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
echo '#define INCLUDEDIR "$(includedir)"'; \
echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
echo '#define DOCDIR "$(docdir)"'; \
echo '#define INFODIR "$(infodir)"'; \
echo '#define HTMLDIR "$(htmldir)"'; \
echo '#define DVIDIR "$(dvidir)"'; \
echo '#define PDFDIR "$(pdfdir)"'; \
echo '#define PSDIR "$(psdir)"'; \
echo '#define LIBDIR "$(libdir)"'; \
echo '#define LISPDIR "$(lispdir)"'; \
echo '#define LOCALEDIR "$(localedir)"'; \
echo '#define MANDIR "$(mandir)"'; \
echo '#define MANEXT "$(manext)"'; \
echo '#define PKGDATADIR "$(pkgdatadir)"'; \
echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
echo '#define PKGLIBDIR "$(pkglibdir)"'; \
echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
echo '#define PKGPLUGINDIR "$(pkgplugindir)"'; \
} | sed '/""/d' > $@-t
@if diff $@-t $@ >/dev/null 2>&1 ; then \
rm @-t ; \
else \
mv $@-t $@ ; \
fi
if HAVE_LCOV
lcov: lcov-clean test index.html
lcov/drizzle.output: drizzled/drizzled
mkdir -p lcov
${LCOV} --directory ${top_srcdir}/lcov --capture --output-file lcov/drizzle.output
lcov/index.html: lcov/drizzle.output
${GENHTML} -o lcov lcov/drizzle.output
lcov-clean:
ln -fs pars/pars0lex.l ${top_srcdir}/storage/innobase/pars0lex.l
ln -fs pars/lexyy.c ${top_srcdir}/storage/innobase/lexyy.c
ln -fs pars/pars0grm.c ${top_srcdir}/storage/innobase/pars0grm.c
ln -fs pars/pars0grm.y ${top_srcdir}/storage/innobase/pars0grm.y
${LCOV} --directory ${top_srcdir} --zerocounters
endif
|