~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Monty
  • Date: 2008-11-07 05:51:15 UTC
  • mto: This revision was merged to the branch mainline in revision 579.
  • Revision ID: mordred@palanthas.inaugust.com-20081107055115-0275gvq62buzls77
Fixed a decimal sign thing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#  Copyright (C) 2009 Sun Microsystems, Inc.
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
15
 
 
16
 
ACLOCAL_AMFLAGS = -I m4 --force
17
 
 
18
 
# includes append to these:
19
 
SUFFIXES =
20
 
TESTS = 
21
 
check_PROGRAMS =
22
 
noinst_HEADERS =
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 =
29
 
sbin_PROGRAMS =
30
 
lib_LTLIBRARIES = 
31
 
noinst_LTLIBRARIES =
32
 
noinst_PROGRAMS =
33
 
man_MANS =
34
 
bin_PROGRAMS =
35
 
 
36
 
VERSION=$(PANDORA_RELEASE_VERSION)
37
 
 
38
 
SUBDIRS = .
39
 
if BUILD_PO
40
 
SUBDIRS += po
 
1
# Copyright (C) 2000-2006 MySQL AB
 
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
 
 
16
ACLOCAL_AMFLAGS = -I m4
 
17
 
 
18
# Process this file with automake to create Makefile.in
 
19
if BUILD_GETTEXT
 
20
  po=po
41
21
endif
42
22
 
43
 
DIST_SUBDIRS = ${SUBDIRS} tests
44
 
 
45
 
BUILT_SOURCES=
46
 
BUILT_MAINT_SRC=
47
 
EXTRA_DIST= \
48
 
            .quickly \
49
 
            ChangeLog \
50
 
            COPYING.Boost \
51
 
            COPYING.BSD \
52
 
            DRIZZLE.FAQ \
53
 
            EXCEPTIONS-CLIENT \
54
 
            config/autorun.sh \
55
 
            config/config.rpath \
56
 
            config/drizzle.ver \
57
 
            config/link-warning.h \
58
 
            config/pandora_vc_revinfo \
59
 
            config/pre_hook.sh \
60
 
            config/uncrustify.cfg \
61
 
            po/Makefile.in.in \
62
 
            ${top_srcdir}/m4/pandora*m4
63
 
 
64
 
 
65
 
CLEANFILES=             ${BUILT_SOURCES}
66
 
DISTCLEANFILES=         ac_available_languages_fragment \
67
 
                        .plugin.scan \
68
 
                        config/bzr_revinfo \
69
 
                        config/top.h \
70
 
                        intltool-extract \
71
 
                        intltool-merge \
72
 
                        intltool-update
73
 
 
74
 
MAINTAINERCLEANFILES= \
75
 
                      autom4te.cache \
76
 
                      ChangeLog
77
 
 
78
 
EXTRA_LTLIBRARIES=
79
 
pkgplugin_LTLIBRARIES=
80
 
include config/pandora-plugin.am
81
 
 
82
 
EXTRA_DIST+=    ${man_MANS}
83
 
 
84
 
.PHONY: \
85
 
        indent
86
 
 
87
 
 
88
 
indent:
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" ;\
93
 
        done
94
 
 
95
 
BUILT_SOURCES+= drizzled/configmake.h
96
 
nobase_nodist_pkginclude_HEADERS+= drizzled/configmake.h
97
 
drizzled/configmake.h: ${top_srcdir}/Makefile.in
98
 
        @echo "Making $@"
99
 
        @rm -f $@-t $@
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 \
133
 
          rm @-t ; \
134
 
        else \
135
 
          mv $@-t $@ ; \
 
23
SUBDIRS = ${po} . \
 
24
          mystrings \
 
25
          mysys \
 
26
          extra \
 
27
          libdrizzle \
 
28
          client \
 
29
          storage \
 
30
          plugin \
 
31
          drizzled \
 
32
          tests \
 
33
          support-files
 
34
 
 
35
EXTRA_DIST = config/config.rpath
 
36
DISTCLEANFILES = ac_available_languages_fragment
 
37
 
 
38
# Create empty datadir 
 
39
install-data-local:
 
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) ;\
136
45
        fi
137
46
 
138
 
clean-local:
139
 
        find . -name '*.gcno' | xargs rm -f 
140
 
        -rm -rf docs/api docs/dev docs/_build docs/doctrees
141
 
 
142
 
include config/lcov.am
143
 
 
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
156
 
 
157
 
TESTS += ${check_PROGRAMS}
158
 
 
159
 
merge-clean:
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
164
 
        bzr unknowns
165
 
 
166
 
install-exec-hook:
167
 
        cd $(DESTDIR)$(sbindir) && \
168
 
        mv -f drizzled$(EXEEXT) drizzled7$(EXEEXT) && \
169
 
        $(LN_S) drizzled7$(EXEEXT) drizzled$(EXEEXT)
170
 
 
171
 
install-data-hook:
172
 
        cd $(DESTDIR)$(man8dir) && \
173
 
        mv -f drizzled.8 drizzled7.8 && \
174
 
        $(LN_S) drizzled7.8 drizzled.8
175
 
 
176
 
uninstall-hook:
177
 
        rm $(DESTDIR)$(man8dir)/drizzled7.8
178
 
        rm $(DESTDIR)$(sbindir)/drizzled7$(EXEEXT)
 
47
distclean-local:
 
48
        @RM@ -r -f autom4te.cache
 
49
 
 
50
.PHONY: test \
 
51
    test-force \
 
52
    test-full \
 
53
    test-force-full \
 
54
    test-force-mem \
 
55
    test-pl \
 
56
    test-force-pl \
 
57
    test-full-pl \
 
58
    test-force-full-pl \
 
59
    test-force-pl-mem \
 
60
    test-ps test-nr \
 
61
    test-pr test-ns \
 
62
    test-binlog-statement \
 
63
    test-ext-funcs \
 
64
    test-ext-rpl \
 
65
    test-ext-jp \
 
66
    test-ext-stress \
 
67
    test-ext \
 
68
    test-fast \
 
69
    test-fast-cursor \
 
70
    test-fast-view \
 
71
    test-full-qa
 
72
 
 
73
# Target 'test' will run the regression test suite using the built server.
 
74
#
 
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.
 
80
 
 
81
test-nr:
 
82
        cd tests ; \
 
83
          ./test-run $(force) --mysqld=--binlog-format=row
 
84
 
 
85
test-ns:
 
86
        cd tests ; \
 
87
          ./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
 
88
 
 
89
test-binlog-statement:
 
90
        cd tests ; \
 
91
          ./test-run $(force) --mysqld=--binlog-format=statement
 
92
 
 
93
test: test-drizzle
 
94
 
 
95
test-drizzle:
 
96
        cd tests ; \
 
97
        $(MAKE) $(AM_MAKEFLAGS) test 
 
98
 
 
99
doxygen:
 
100
        doxygen Doxyfile