~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:
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
19
SUFFIXES =
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
20
TESTS = 
21
check_PROGRAMS =
22
noinst_HEADERS =
1253.2.2 by Monty Taylor
Fixed header install.
23
nobase_nodist_include_HEADERS =
24
nobase_dist_include_HEADERS =
1644.3.4 by Barry.Leslie at PrimeBase
Install the pbmslib.h file using the automake dist_include_HEADERS list.
25
dist_include_HEADERS =
2157.2.1 by Monty Taylor
Provide pkg-config files and also stick drizzle plugin files in a place
26
nobase_nodist_pkginclude_HEADERS =
27
nobase_dist_pkginclude_HEADERS =
28
dist_pkginclude_HEADERS =
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
29
sbin_PROGRAMS =
1241.9.4 by Monty Taylor
Beginnings of what we need to do to support -fvisibility=hidden.
30
lib_LTLIBRARIES = 
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
31
noinst_LTLIBRARIES =
32
noinst_PROGRAMS =
1799.3.2 by Monty Taylor
Use drizzledump sphinx docs as manpage source.
33
man_MANS =
34
bin_PROGRAMS =
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
35
1845.1.2 by Monty Taylor
We _want_ to keep doing bzr versioning in trunk.
36
VERSION=$(PANDORA_RELEASE_VERSION)
37
1719.1.2 by Monty Taylor
Ok. FFS.
38
SUBDIRS = .
39
if BUILD_PO
40
SUBDIRS += po
41
endif
187 by Brian Aker
Fixed tab issue
42
1192.3.73 by Monty Taylor
Fix distcheck.
43
DIST_SUBDIRS = ${SUBDIRS} tests
44
1608.4.1 by Monty Taylor
Changed the way we generated configmake.h to prevent it from being
45
BUILT_SOURCES=
1730.6.13 by Hartmut Holzgraefe
fixes for 'make dist' as innodb parser files are now created dynamicly
46
BUILT_MAINT_SRC=
1377.3.3 by Monty Taylor
Don't ship config/autorun.sh in the tarball... there is no need for anyone
47
EXTRA_DIST= \
1716.1.1 by Monty Taylor
Added files to the tarball that should be there. Removed some that shouldn't
48
	    .quickly \
1866.2.2 by Monty Taylor
Generate ChangeLog from bzr for dist.
49
	    ChangeLog \
1815.1.1 by Monty Taylor
Embed a modified version of parse_config_file. There are several more bugs
50
	    COPYING.Boost \
1799.2.2 by Monty Taylor
Added BSD copying file.
51
	    COPYING.BSD \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
52
	    DRIZZLE.FAQ \
53
	    EXCEPTIONS-CLIENT \
1716.1.1 by Monty Taylor
Added files to the tarball that should be there. Removed some that shouldn't
54
	    config/autorun.sh \
1377.3.3 by Monty Taylor
Don't ship config/autorun.sh in the tarball... there is no need for anyone
55
	    config/config.rpath \
1861.3.6 by Monty Taylor
Add drizzle.ver to extra_dist.
56
	    config/drizzle.ver \
1986.1.1 by Monty Taylor
Distribute link-warning.h and distribute it with the right copyright header.
57
	    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
58
	    config/pandora_vc_revinfo \
1716.1.1 by Monty Taylor
Added files to the tarball that should be there. Removed some that shouldn't
59
	    config/pre_hook.sh \
1769.2.1 by Monty Taylor
Include files in tarball that were being left out.
60
	    po/Makefile.in.in \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
61
	    ${top_srcdir}/m4/pandora*m4
1130.3.42 by Monty Taylor
Fied check_include_guards for distcheck.
62
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.
63
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
64
CLEANFILES=		${BUILT_SOURCES}
1192.3.12 by Monty Taylor
Fixed another distcheck issue. Distcheck works now.
65
DISTCLEANFILES=		ac_available_languages_fragment \
66
			.plugin.scan \
1253.2.4 by Monty Taylor
Some GCC warnings fixes.
67
			config/bzr_revinfo \
1667.4.1 by Monty Taylor
Removed gettext - replaced with intltool. Dear god it's so much better.
68
			config/top.h \
69
			intltool-extract \
70
			intltool-merge \
71
			intltool-update
1192.3.16 by Monty Taylor
Fixed the illusive touch errors in vpath builds.
72
1866.2.2 by Monty Taylor
Generate ChangeLog from bzr for dist.
73
MAINTAINERCLEANFILES= \
74
		      autom4te.cache \
75
		      ChangeLog
992.1.18 by Monty Taylor
Moved client build into root Makefile.
76
992.1.21 by Monty Taylor
First pass at replacing plugin.m4.
77
EXTRA_LTLIBRARIES=
78
pkgplugin_LTLIBRARIES=
1192.4.1 by Robert Collins
Merged buildsystem change from lifeless.
79
include config/pandora-plugin.am
992.1.21 by Monty Taylor
First pass at replacing plugin.m4.
80
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.
81
EXTRA_DIST+=	${man_MANS}
77.1.106 by Monty Taylor
Another batch of distclean fixes.
82
1192.6.2 by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files.
83
.PHONY: \
1471.3.1 by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck.
84
	indent
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
85
1608.4.1 by Monty Taylor
Changed the way we generated configmake.h to prevent it from being
86
656.1.11 by Monty Taylor
Added indent rule and uncrustify config.
87
indent:
88
	for f in `find ${top_srcdir} -type f | grep -v innobase |\
89
                  ${EGREP} '\.(cc|c|h)$$' ` ; do \
90
            uncrustify -f $$f -c ${top_srcdir}/config/uncrustify.cfg \
91
               -o indentoutput.tmp && mv indentoutput.tmp "$$f" ;\
92
        done
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
93
1608.4.3 by Monty Taylor
Changed the way we generated configmake.h - this time with working
94
BUILT_SOURCES+= drizzled/configmake.h
2157.2.1 by Monty Taylor
Provide pkg-config files and also stick drizzle plugin files in a place
95
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
96
drizzled/configmake.h: ${top_srcdir}/Makefile.in
97
	@echo "Making $@"
98
	@rm -f $@-t $@
99
	@{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
100
	  echo '#define PREFIX "$(prefix)"'; \
101
	  echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
102
	  echo '#define BINDIR "$(bindir)"'; \
103
	  echo '#define SBINDIR "$(sbindir)"'; \
104
	  echo '#define LIBEXECDIR "$(libexecdir)"'; \
105
	  echo '#define DATAROOTDIR "$(datarootdir)"'; \
106
	  echo '#define DATADIR "$(datadir)"'; \
107
	  echo '#define SYSCONFDIR "$(sysconfdir)"'; \
108
	  echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
109
	  echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
110
	  echo '#define INCLUDEDIR "$(includedir)"'; \
111
	  echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
112
	  echo '#define DOCDIR "$(docdir)"'; \
113
	  echo '#define INFODIR "$(infodir)"'; \
114
	  echo '#define HTMLDIR "$(htmldir)"'; \
115
	  echo '#define DVIDIR "$(dvidir)"'; \
116
	  echo '#define PDFDIR "$(pdfdir)"'; \
117
	  echo '#define PSDIR "$(psdir)"'; \
118
	  echo '#define LIBDIR "$(libdir)"'; \
119
	  echo '#define LISPDIR "$(lispdir)"'; \
120
	  echo '#define LOCALEDIR "$(localedir)"'; \
121
	  echo '#define MANDIR "$(mandir)"'; \
122
	  echo '#define MANEXT "$(manext)"'; \
123
	  echo '#define PKGDATADIR "$(pkgdatadir)"'; \
124
	  echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
125
	  echo '#define PKGLIBDIR "$(pkglibdir)"'; \
126
	  echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
127
	  echo '#define PKGPLUGINDIR "$(pkgplugindir)"'; \
1845.1.2 by Monty Taylor
We _want_ to keep doing bzr versioning in trunk.
128
          echo '#undef VERSION'; \
129
          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
130
	} | sed '/""/d' > $@-t
131
	@if diff $@-t $@ >/dev/null 2>&1 ; then \
132
	  rm @-t ; \
133
	else \
134
	  mv $@-t $@ ; \
135
	fi
136
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
137
clean-local:
1138.1.1 by Monty Taylor
Fix for the distcheck build issue.
138
	find . -name '*.gcno' | xargs rm -f 
1800.1.9 by Monty Taylor
Added clean rules for sphinx output.
139
	-rm -rf docs/api docs/dev docs/_build docs/doctrees
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
140
1730.7.1 by Hartmut Holzgraefe
various lcov related changes
141
include config/lcov.am
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
142
1731.5.2 by Monty Taylor
Added sphinx to the build.
143
include docs/include.am
1300.5.16 by Monty Taylor
Changed library link ordering.
144
include drizzled/message/include.am
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
145
include drizzled/include.am
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
146
include drizzled/internal/include.am
1259.6.2 by Joe Daly
rename hash_algorithm to algorithm
147
include drizzled/algorithm/include.am
1192.3.58 by Monty Taylor
Merged up with build.
148
include drizzled/util/include.am
1265 by Brian Aker
Updated Makefile.am to push client rules to include.am
149
include client/include.am
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
150
include support-files/include.am
151
include tests/include.am
1377.8.1 by pawel
primitive integration of the testing framework with the building process
152
include unittests/include.am
1712.1.1 by Monty Taylor
Merged libdrizzle directly into tree.
153
include libdrizzle/include.am
1720.1.5 by Monty Taylor
Added libdrizzle to the tree.
154
include win32/include.am
1264 by Brian Aker
Added merge-clean rule that I use :)
155
1491.6.2 by Monty Taylor
Hook in to autoconf and automake.
156
TESTS += ${check_PROGRAMS}
157
1264 by Brian Aker
Added merge-clean rule that I use :)
158
merge-clean:
159
	find ./ | $(GREP) \.orig | xargs rm -f
1657 by Brian Aker
Add back result file that was lost in merge.
160
	find ./ | $(GREP) \.moved | xargs rm -f
1264 by Brian Aker
Added merge-clean rule that I use :)
161
	find ./ | $(GREP) \.rej | xargs rm -f
162
	find ./ | $(GREP) \~$$ | xargs rm -f
163
	bzr unknowns
1286.1.2 by Brian Aker
Added very basic RPM support.
164
1782.2.2 by Monty Taylor
Install a versioned drizzled and a symlink to it.
165
install-exec-hook:
166
	cd $(DESTDIR)$(sbindir) && \
1860.1.1 by Monty Taylor
Fixed several make dist errors pointed out by debian.
167
	mv -f drizzled$(EXEEXT) drizzled7$(EXEEXT) && \
168
	$(LN_S) drizzled7$(EXEEXT) drizzled$(EXEEXT)
1782.2.3 by Monty Taylor
Also symlink the manpages.
169
170
install-data-hook:
171
	cd $(DESTDIR)$(man8dir) && \
1860.1.1 by Monty Taylor
Fixed several make dist errors pointed out by debian.
172
	mv -f drizzled.8 drizzled7.8 && \
173
	$(LN_S) drizzled7.8 drizzled.8
1782.2.4 by Monty Taylor
Fixed uninstall hook. Bother.
174
175
uninstall-hook:
1860.1.1 by Monty Taylor
Fixed several make dist errors pointed out by debian.
176
	rm $(DESTDIR)$(man8dir)/drizzled7.8
177
	rm $(DESTDIR)$(sbindir)/drizzled7$(EXEEXT)