~drizzle-trunk/drizzle/development

1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
1
#  Copyright (C) 2009 Sun Microsystems, Inc.
992.1.25 by Monty Taylor
Moved myisam to new plugin system.
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
1 by brian
clean slate
15
722.2.9 by Monty Taylor
I _think_ I've got the plug.in triggering rebuild thing going on right.
16
ACLOCAL_AMFLAGS = -I m4 --force
475 by Monty Taylor
Added m4 files for deficient systems. Changed include mechanism to not need
17
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
18
# includes append to these:
2426.3.1 by Henrik Ingo
This does 2 things:
19
# Pandora build system takes input from plugin.ini files that are appended to these
20
# Corresponding Pandora parameter names are mentioned in comments
21
# A few directory targets (libexec/ and etc/) are unused as of this writing and
22
# therefore commented out. pandora-build will support them if you uncomment.
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
23
SUFFIXES =
2318.2.3 by Olaf van der Spek
Refactor
24
TESTS =
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
25
check_PROGRAMS =
2426.3.1 by Henrik Ingo
This does 2 things:
26
# headers
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
27
noinst_HEADERS =
1253.2.2 by Monty Taylor
Fixed header install.
28
nobase_nodist_include_HEADERS =
29
nobase_dist_include_HEADERS =
1644.3.4 by Barry.Leslie at PrimeBase
Install the pbmslib.h file using the automake dist_include_HEADERS list.
30
dist_include_HEADERS =
2157.2.1 by Monty Taylor
Provide pkg-config files and also stick drizzle plugin files in a place
31
nobase_nodist_pkginclude_HEADERS =
2426.3.1 by Henrik Ingo
This does 2 things:
32
# install_headers
2157.2.1 by Monty Taylor
Provide pkg-config files and also stick drizzle plugin files in a place
33
nobase_dist_pkginclude_HEADERS =
34
dist_pkginclude_HEADERS =
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
35
sbin_PROGRAMS =
2318.2.3 by Olaf van der Spek
Refactor
36
lib_LTLIBRARIES =
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
37
noinst_LTLIBRARIES =
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
38
extradir=${libdir}
39
extra_LTLIBRARIES =
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
40
noinst_PROGRAMS =
1799.3.2 by Monty Taylor
Use drizzledump sphinx docs as manpage source.
41
man_MANS =
42
bin_PROGRAMS =
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
43
2449.1.3 by Brian Aker
Fix libdrizzle pc support (and restore older .pc file to fix older compiles).
44
nobase_include_HEADERS=
45
2426.3.1 by Henrik Ingo
This does 2 things:
46
# scripts or bin_scripts
47
dist_bin_SCRIPTS=
48
# sbin_scripts
49
dist_sbin_SCRIPTS=
50
# libexec_scripts
51
#dist_libexec_SCRIPTS=
52
# pkg_scripts
53
dist_pkgdata_SCRIPTS=
54
# data
55
dist_data_DATA=
56
# pkg_data
57
dist_pkgdata_DATA=
58
# sysconf_data
59
#dist_sysconf_DATA=
60
1845.1.2 by Monty Taylor
We _want_ to keep doing bzr versioning in trunk.
61
VERSION=$(PANDORA_RELEASE_VERSION)
62
1719.1.2 by Monty Taylor
Ok. FFS.
63
SUBDIRS = .
64
if BUILD_PO
65
SUBDIRS += po
66
endif
187 by Brian Aker
Fixed tab issue
67
1192.3.73 by Monty Taylor
Fix distcheck.
68
DIST_SUBDIRS = ${SUBDIRS} tests
69
1608.4.1 by Monty Taylor
Changed the way we generated configmake.h to prevent it from being
70
BUILT_SOURCES=
1730.6.13 by Hartmut Holzgraefe
fixes for 'make dist' as innodb parser files are now created dynamicly
71
BUILT_MAINT_SRC=
1377.3.3 by Monty Taylor
Don't ship config/autorun.sh in the tarball... there is no need for anyone
72
EXTRA_DIST= \
1716.1.1 by Monty Taylor
Added files to the tarball that should be there. Removed some that shouldn't
73
	    .quickly \
1866.2.2 by Monty Taylor
Generate ChangeLog from bzr for dist.
74
	    ChangeLog \
1815.1.1 by Monty Taylor
Embed a modified version of parse_config_file. There are several more bugs
75
	    COPYING.Boost \
1799.2.2 by Monty Taylor
Added BSD copying file.
76
	    COPYING.BSD \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
77
	    DRIZZLE.FAQ \
78
	    EXCEPTIONS-CLIENT \
1716.1.1 by Monty Taylor
Added files to the tarball that should be there. Removed some that shouldn't
79
	    config/autorun.sh \
1377.3.3 by Monty Taylor
Don't ship config/autorun.sh in the tarball... there is no need for anyone
80
	    config/config.rpath \
1861.3.6 by Monty Taylor
Add drizzle.ver to extra_dist.
81
	    config/drizzle.ver \
1986.1.1 by Monty Taylor
Distribute link-warning.h and distribute it with the right copyright header.
82
	    config/link-warning.h \
1377.3.3 by Monty Taylor
Don't ship config/autorun.sh in the tarball... there is no need for anyone
83
	    config/pandora_vc_revinfo \
1716.1.1 by Monty Taylor
Added files to the tarball that should be there. Removed some that shouldn't
84
	    config/pre_hook.sh \
1769.2.1 by Monty Taylor
Include files in tarball that were being left out.
85
	    po/Makefile.in.in \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
86
	    ${top_srcdir}/m4/pandora*m4
1130.3.42 by Monty Taylor
Fied check_include_guards for distcheck.
87
1022.2.28 by Monty Taylor
Build/dist fixes. Added my_print_defaults back for now - test_run needs it. But now it's a noinst. Moving forward, it either needs to be renamed and installed properly, or it needs to have its functionality wrapped up into something else.
88
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
89
CLEANFILES=		${BUILT_SOURCES}
1192.3.12 by Monty Taylor
Fixed another distcheck issue. Distcheck works now.
90
DISTCLEANFILES=		ac_available_languages_fragment \
91
			.plugin.scan \
1253.2.4 by Monty Taylor
Some GCC warnings fixes.
92
			config/bzr_revinfo \
1667.4.1 by Monty Taylor
Removed gettext - replaced with intltool. Dear god it's so much better.
93
			config/top.h \
94
			intltool-extract \
95
			intltool-merge \
96
			intltool-update
1192.3.16 by Monty Taylor
Fixed the illusive touch errors in vpath builds.
97
1866.2.2 by Monty Taylor
Generate ChangeLog from bzr for dist.
98
MAINTAINERCLEANFILES= \
99
		      autom4te.cache \
100
		      ChangeLog
992.1.18 by Monty Taylor
Moved client build into root Makefile.
101
2392.1.1 by Brian Aker
Fixes for --help work.
102
datahomedir = $(localstatedir)
103
datahome_DATA=
104
992.1.21 by Monty Taylor
First pass at replacing plugin.m4.
105
EXTRA_LTLIBRARIES=
106
pkgplugin_LTLIBRARIES=
1192.4.1 by Robert Collins
Merged buildsystem change from lifeless.
107
include config/pandora-plugin.am
992.1.21 by Monty Taylor
First pass at replacing plugin.m4.
108
1022.2.28 by Monty Taylor
Build/dist fixes. Added my_print_defaults back for now - test_run needs it. But now it's a noinst. Moving forward, it either needs to be renamed and installed properly, or it needs to have its functionality wrapped up into something else.
109
EXTRA_DIST+=	${man_MANS}
77.1.106 by Monty Taylor
Another batch of distclean fixes.
110
1192.6.2 by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files.
111
.PHONY: \
1471.3.1 by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck.
112
	indent
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
113
1608.4.1 by Monty Taylor
Changed the way we generated configmake.h to prevent it from being
114
656.1.11 by Monty Taylor
Added indent rule and uncrustify config.
115
indent:
116
	for f in `find ${top_srcdir} -type f | grep -v innobase |\
117
                  ${EGREP} '\.(cc|c|h)$$' ` ; do \
118
            uncrustify -f $$f -c ${top_srcdir}/config/uncrustify.cfg \
119
               -o indentoutput.tmp && mv indentoutput.tmp "$$f" ;\
120
        done
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
121
1608.4.3 by Monty Taylor
Changed the way we generated configmake.h - this time with working
122
BUILT_SOURCES+= drizzled/configmake.h
2157.2.1 by Monty Taylor
Provide pkg-config files and also stick drizzle plugin files in a place
123
nobase_nodist_pkginclude_HEADERS+= drizzled/configmake.h
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
124
drizzled/configmake.h: ${top_srcdir}/Makefile.in
125
	@echo "Making $@"
126
	@rm -f $@-t $@
127
	@{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
128
	  echo '#define PREFIX "$(prefix)"'; \
129
	  echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
130
	  echo '#define BINDIR "$(bindir)"'; \
131
	  echo '#define SBINDIR "$(sbindir)"'; \
132
	  echo '#define LIBEXECDIR "$(libexecdir)"'; \
133
	  echo '#define DATAROOTDIR "$(datarootdir)"'; \
134
	  echo '#define DATADIR "$(datadir)"'; \
135
	  echo '#define SYSCONFDIR "$(sysconfdir)"'; \
136
	  echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
137
	  echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
138
	  echo '#define INCLUDEDIR "$(includedir)"'; \
139
	  echo '#define DOCDIR "$(docdir)"'; \
140
	  echo '#define INFODIR "$(infodir)"'; \
141
	  echo '#define HTMLDIR "$(htmldir)"'; \
142
	  echo '#define DVIDIR "$(dvidir)"'; \
143
	  echo '#define PDFDIR "$(pdfdir)"'; \
144
	  echo '#define PSDIR "$(psdir)"'; \
145
	  echo '#define LIBDIR "$(libdir)"'; \
146
	  echo '#define LISPDIR "$(lispdir)"'; \
147
	  echo '#define LOCALEDIR "$(localedir)"'; \
148
	  echo '#define MANDIR "$(mandir)"'; \
149
	  echo '#define MANEXT "$(manext)"'; \
150
	  echo '#define PKGDATADIR "$(pkgdatadir)"'; \
151
	  echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
152
	  echo '#define PKGLIBDIR "$(pkglibdir)"'; \
153
	  echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
154
	  echo '#define PKGPLUGINDIR "$(pkgplugindir)"'; \
1845.1.2 by Monty Taylor
We _want_ to keep doing bzr versioning in trunk.
155
          echo '#undef VERSION'; \
156
          echo '#define VERSION "${PANDORA_RELEASE_VERSION}"'; \
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
157
	} | sed '/""/d' > $@-t
158
	@if diff $@-t $@ >/dev/null 2>&1 ; then \
159
	  rm @-t ; \
160
	else \
161
	  mv $@-t $@ ; \
162
	fi
163
1126.12.1 by Lee Bieber
add clean-local target to remove lcov .gcno files. Also remove if HAVE_LCOV section from Makefile.am and lcov checks from configure.ac as they are not used nor needed
164
clean-local:
2318.2.3 by Olaf van der Spek
Refactor
165
	find . -name '*.gcno' | xargs rm -f
1800.1.9 by Monty Taylor
Added clean rules for sphinx output.
166
	-rm -rf docs/api docs/dev docs/_build docs/doctrees
2426.1.1 by Henrik Ingo
Add the directories output by various sphinx make targets to
167
	rm -Rf $(SPHINX_BUILDDIR)/html $(SPHINX_BUILDDIR)/dirhtml $(SPHINX_BUILDDIR)/singlehtml \
168
	$(SPHINX_BUILDDIR)/pickle $(SPHINX_BUILDDIR)/json $(SPHINX_BUILDDIR)/htmlhelp \
169
	$(SPHINX_BUILDDIR)/qthelp $(SPHINX_BUILDDIR)/devhelp $(SPHINX_BUILDDIR)/epub \
170
	$(SPHINX_BUILDDIR)/latex $(SPHINX_BUILDDIR)/latexpdf $(SPHINX_BUILDDIR)/text \
171
	$(SPHINX_BUILDDIR)/man $(SPHINX_BUILDDIR)/changes $(SPHINX_BUILDDIR)/linkcheck \
172
	$(SPHINX_BUILDDIR)/doctest
1126.12.1 by Lee Bieber
add clean-local target to remove lcov .gcno files. Also remove if HAVE_LCOV section from Makefile.am and lcov checks from configure.ac as they are not used nor needed
173
1730.7.1 by Hartmut Holzgraefe
various lcov related changes
174
include config/lcov.am
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
175
1300.5.16 by Monty Taylor
Changed library link ordering.
176
include drizzled/message/include.am
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
177
include drizzled/include.am
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
178
include drizzled/internal/include.am
1259.6.2 by Joe Daly
rename hash_algorithm to algorithm
179
include drizzled/algorithm/include.am
1192.3.58 by Monty Taylor
Merged up with build.
180
include drizzled/util/include.am
1265 by Brian Aker
Updated Makefile.am to push client rules to include.am
181
include client/include.am
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
182
include support-files/include.am
183
include tests/include.am
1377.8.1 by pawel
primitive integration of the testing framework with the building process
184
include unittests/include.am
2449.1.1 by Brian Aker
This fixes the race condition on pkg, as well as the php client compile failure.
185
include libdrizzle/include.am
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
186
include libdrizzle-1.0/include.am
187
include libdrizzle-2.0/include.am
1720.1.5 by Monty Taylor
Added libdrizzle to the tree.
188
include win32/include.am
2318.2.3 by Olaf van der Spek
Refactor
189
include docs/include.am
1264 by Brian Aker
Added merge-clean rule that I use :)
190
1491.6.2 by Monty Taylor
Hook in to autoconf and automake.
191
TESTS += ${check_PROGRAMS}
192
1264 by Brian Aker
Added merge-clean rule that I use :)
193
merge-clean:
194
	find ./ | $(GREP) \.orig | xargs rm -f
1657 by Brian Aker
Add back result file that was lost in merge.
195
	find ./ | $(GREP) \.moved | xargs rm -f
1264 by Brian Aker
Added merge-clean rule that I use :)
196
	find ./ | $(GREP) \.rej | xargs rm -f
197
	find ./ | $(GREP) \~$$ | xargs rm -f
198
	bzr unknowns
1286.1.2 by Brian Aker
Added very basic RPM support.
199
1782.2.2 by Monty Taylor
Install a versioned drizzled and a symlink to it.
200
install-exec-hook:
201
	cd $(DESTDIR)$(sbindir) && \
1860.1.1 by Monty Taylor
Fixed several make dist errors pointed out by debian.
202
	mv -f drizzled$(EXEEXT) drizzled7$(EXEEXT) && \
203
	$(LN_S) drizzled7$(EXEEXT) drizzled$(EXEEXT)
1782.2.3 by Monty Taylor
Also symlink the manpages.
204
205
install-data-hook:
206
	cd $(DESTDIR)$(man8dir) && \
1860.1.1 by Monty Taylor
Fixed several make dist errors pointed out by debian.
207
	mv -f drizzled.8 drizzled7.8 && \
208
	$(LN_S) drizzled7.8 drizzled.8
1782.2.4 by Monty Taylor
Fixed uninstall hook. Bother.
209
210
uninstall-hook:
1860.1.1 by Monty Taylor
Fixed several make dist errors pointed out by debian.
211
	rm $(DESTDIR)$(man8dir)/drizzled7.8
212
	rm $(DESTDIR)$(sbindir)/drizzled7$(EXEEXT)