2006-12-31 01:02:27 +01:00
|
|
|
# Copyright (C) 2000-2006 MySQL AB
|
2000-07-31 21:29:14 +02:00
|
|
|
#
|
|
|
|
# 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
|
2006-12-23 20:17:15 +01:00
|
|
|
# the Free Software Foundation; version 2 of the License.
|
2000-07-31 21:29:14 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
## Process this file with automake to create Makefile.in
|
|
|
|
|
2007-04-23 14:01:48 +02:00
|
|
|
BUILT_SOURCES = mysql_fix_privilege_tables.sql \
|
2007-05-03 15:51:02 +02:00
|
|
|
mysql_fix_privilege_tables_sql.c
|
2007-04-23 14:01:48 +02:00
|
|
|
|
2007-04-30 17:01:00 +02:00
|
|
|
EXTRA_PROGRAMS = comp_sql
|
2007-04-23 14:01:48 +02:00
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
bin_SCRIPTS = @server_scripts@ \
|
|
|
|
msql2mysql \
|
|
|
|
mysql_config \
|
|
|
|
mysql_fix_privilege_tables \
|
2003-02-03 12:20:24 +01:00
|
|
|
mysql_fix_extensions \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysql_setpermission \
|
2002-06-09 06:10:42 +02:00
|
|
|
mysql_secure_installation \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysql_zap \
|
|
|
|
mysqlaccess \
|
|
|
|
mysqlbug \
|
|
|
|
mysql_convert_table_format \
|
|
|
|
mysql_find_rows \
|
2000-11-17 01:36:46 +01:00
|
|
|
mysqlhotcopy \
|
2000-12-07 14:57:58 +01:00
|
|
|
mysqldumpslow \
|
2007-02-26 11:49:24 +01:00
|
|
|
mysqld_multi
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2005-07-25 14:14:24 +02:00
|
|
|
noinst_SCRIPTS = make_binary_distribution \
|
2008-12-20 11:01:41 +01:00
|
|
|
make_sharedlib_distribution \
|
|
|
|
dheadgen.pl
|
2005-07-25 14:14:24 +02:00
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
EXTRA_SCRIPTS = make_binary_distribution.sh \
|
2003-10-08 12:35:24 +02:00
|
|
|
make_sharedlib_distribution.sh \
|
2000-07-31 21:29:14 +02:00
|
|
|
msql2mysql.sh \
|
|
|
|
mysql_config.sh \
|
2007-12-28 01:02:28 +01:00
|
|
|
mysql_config.pl.in \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysql_fix_privilege_tables.sh \
|
2003-02-03 12:20:24 +01:00
|
|
|
mysql_fix_extensions.sh \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysql_install_db.sh \
|
2007-12-28 01:02:28 +01:00
|
|
|
mysql_install_db.pl.in \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysql_setpermission.sh \
|
2002-06-09 06:10:42 +02:00
|
|
|
mysql_secure_installation.sh \
|
2007-12-28 22:58:54 +01:00
|
|
|
mysql_secure_installation.pl.in \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysql_zap.sh \
|
|
|
|
mysqlaccess.sh \
|
|
|
|
mysqlbug.sh \
|
|
|
|
mysql_convert_table_format.sh \
|
|
|
|
mysql_find_rows.sh \
|
|
|
|
mysqlhotcopy.sh \
|
2003-02-03 12:20:24 +01:00
|
|
|
mysqldumpslow.sh \
|
2000-12-16 22:41:45 +01:00
|
|
|
mysqld_multi.sh \
|
2008-12-20 11:01:41 +01:00
|
|
|
mysqld_safe.sh \
|
|
|
|
dheadgen.pl
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
EXTRA_DIST = $(EXTRA_SCRIPTS) \
|
|
|
|
mysqlaccess.conf \
|
2006-06-30 15:15:20 +02:00
|
|
|
mysqlbug \
|
2007-02-26 11:49:24 +01:00
|
|
|
make_win_bin_dist \
|
2007-04-30 17:01:00 +02:00
|
|
|
mysql_fix_privilege_tables_sql.c \
|
2007-04-18 19:34:33 +02:00
|
|
|
mysql_system_tables_fix.sql \
|
|
|
|
CMakeLists.txt
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2007-02-26 11:49:24 +01:00
|
|
|
dist_pkgdata_DATA = fill_help_tables.sql \
|
|
|
|
mysql_fix_privilege_tables.sql \
|
|
|
|
mysql_system_tables.sql \
|
2007-02-28 14:26:58 +01:00
|
|
|
mysql_system_tables_data.sql \
|
2007-02-26 11:49:24 +01:00
|
|
|
mysql_test_data_timezone.sql
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
CLEANFILES = @server_scripts@ \
|
|
|
|
make_binary_distribution \
|
2003-10-08 12:35:24 +02:00
|
|
|
make_sharedlib_distribution \
|
2000-07-31 21:29:14 +02:00
|
|
|
msql2mysql \
|
2000-09-14 14:10:06 +02:00
|
|
|
mysql_config \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysql_fix_privilege_tables \
|
2003-02-03 12:20:24 +01:00
|
|
|
mysql_fix_extensions \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysql_setpermission \
|
2002-06-09 06:10:42 +02:00
|
|
|
mysql_secure_installation \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysql_zap \
|
|
|
|
mysqlaccess \
|
|
|
|
mysql_convert_table_format \
|
2000-09-14 14:10:06 +02:00
|
|
|
mysql_find_rows \
|
2000-11-17 01:36:46 +01:00
|
|
|
mysqlhotcopy \
|
2000-12-07 14:57:58 +01:00
|
|
|
mysqldumpslow \
|
2007-05-03 18:08:06 +02:00
|
|
|
mysqld_multi
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2008-01-02 14:00:46 +01:00
|
|
|
pkgplugindir = $(pkglibdir)/plugin
|
2007-12-19 14:24:43 +01:00
|
|
|
|
2007-09-27 12:21:56 +02:00
|
|
|
# Default same as 'pkgdatadir', but we can override it
|
|
|
|
pkgsuppdir = $(datadir)/@PACKAGE@
|
|
|
|
|
2007-02-28 14:26:58 +01:00
|
|
|
# mysqlbug should be distributed built so that people can report build
|
|
|
|
# failures with it.
|
2007-05-03 15:51:02 +02:00
|
|
|
DISTCLEANFILES = $(BUILT_SOURCES) mysqlbug
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
# We want the right version and configure comand line in mysqlbug
|
2002-01-26 00:19:47 +01:00
|
|
|
mysqlbug: ${top_builddir}/config.status mysqlbug.sh
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2007-02-26 11:49:24 +01:00
|
|
|
# Build mysql_fix_privilege_tables.sql from the files that contain
|
|
|
|
# the system tables for this version of MySQL plus any commands
|
|
|
|
# needed to upgrade the system tables from an older version
|
2007-02-28 14:26:58 +01:00
|
|
|
mysql_fix_privilege_tables.sql: mysql_system_tables.sql \
|
|
|
|
mysql_system_tables_fix.sql
|
2007-02-26 11:49:24 +01:00
|
|
|
@echo "Building $@";
|
2008-12-20 11:01:41 +01:00
|
|
|
@cat $(srcdir)/mysql_system_tables.sql $(srcdir)/mysql_system_tables_fix.sql > $@
|
2007-02-26 11:49:24 +01:00
|
|
|
|
2007-04-23 14:01:48 +02:00
|
|
|
#
|
|
|
|
# Build mysql_fix_privilege_tables_sql.c from
|
|
|
|
# mysql_fix_privileges_tables.sql using comp_sql
|
2007-05-03 15:51:02 +02:00
|
|
|
# The "sleep" ensures the generated file has a younger timestamp than its source
|
|
|
|
# (which may have been generated in this very same "make" run).
|
2007-04-23 14:01:48 +02:00
|
|
|
#
|
|
|
|
mysql_fix_privilege_tables_sql.c: comp_sql.c mysql_fix_privilege_tables.sql
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) comp_sql$(EXEEXT)
|
2007-05-03 15:51:02 +02:00
|
|
|
sleep 2
|
2007-04-23 14:01:48 +02:00
|
|
|
$(top_builddir)/scripts/comp_sql$(EXEEXT) \
|
2007-05-02 14:01:49 +02:00
|
|
|
mysql_fix_privilege_tables \
|
2008-12-20 11:01:41 +01:00
|
|
|
$(top_builddir)/scripts/mysql_fix_privilege_tables.sql $@
|
2007-04-23 14:01:48 +02:00
|
|
|
|
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
SUFFIXES = .sh
|
|
|
|
|
|
|
|
.sh:
|
|
|
|
@RM@ -f $@ $@-t
|
|
|
|
@SED@ \
|
|
|
|
-e 's!@''bindir''@!$(bindir)!g' \
|
2000-09-07 03:55:17 +02:00
|
|
|
-e 's!@''sbindir''@!$(sbindir)!g' \
|
2000-07-31 21:29:14 +02:00
|
|
|
-e 's!@''scriptdir''@!$(bindir)!g' \
|
|
|
|
-e 's!@''prefix''@!$(prefix)!g' \
|
|
|
|
-e 's!@''datadir''@!$(datadir)!g' \
|
|
|
|
-e 's!@''localstatedir''@!$(localstatedir)!g' \
|
|
|
|
-e 's!@''libexecdir''@!$(libexecdir)!g' \
|
|
|
|
-e 's!@''pkglibdir''@!$(pkglibdir)!g' \
|
|
|
|
-e 's!@''pkgincludedir''@!$(pkgincludedir)!g' \
|
2003-03-21 17:53:55 +01:00
|
|
|
-e 's!@''pkgdatadir''@!$(pkgdatadir)!g' \
|
2007-12-19 14:24:43 +01:00
|
|
|
-e 's!@''pkgplugindir''@!$(pkgplugindir)!g' \
|
2007-09-27 12:21:56 +02:00
|
|
|
-e 's!@''pkgsuppdir''@!$(pkgsuppdir)!g' \
|
2006-12-07 15:02:32 +01:00
|
|
|
-e 's!@''sysconfdir''@!$(sysconfdir)!g' \
|
2007-09-26 20:19:33 +02:00
|
|
|
-e 's!@''mandir''@!$(mandir)!g' \
|
|
|
|
-e 's!@''infodir''@!$(infodir)!g' \
|
2000-07-31 21:29:14 +02:00
|
|
|
-e 's!@''CC''@!@CC@!'\
|
|
|
|
-e 's!@''CXX''@!@CXX@!'\
|
|
|
|
-e 's!@''GXX''@!@GXX@!'\
|
2007-10-18 12:03:30 +02:00
|
|
|
-e 's!@''SAVE_CC''@!@SAVE_CC@!'\
|
|
|
|
-e 's!@''SAVE_CXX''@!@SAVE_CXX@!'\
|
2002-12-20 13:58:27 +01:00
|
|
|
-e 's!@''CC_VERSION''@!@CC_VERSION@!'\
|
|
|
|
-e 's!@''CXX_VERSION''@!@CXX_VERSION@!'\
|
2000-07-31 21:29:14 +02:00
|
|
|
-e 's!@''PERL''@!@PERL@!' \
|
2007-10-18 12:03:30 +02:00
|
|
|
-e 's!@''SAVE_ASFLAGS''@!@SAVE_ASFLAGS@!'\
|
|
|
|
-e 's!@''SAVE_CFLAGS''@!@SAVE_CFLAGS@!'\
|
|
|
|
-e 's!@''SAVE_CXXFLAGS''@!@SAVE_CXXFLAGS@!'\
|
|
|
|
-e 's!@''SAVE_LDFLAGS''@!@SAVE_LDFLAGS@!'\
|
|
|
|
-e 's!@''ASFLAGS''@!@ASFLAGS@!'\
|
|
|
|
-e 's!@''CFLAGS''@!@CFLAGS@!'\
|
|
|
|
-e 's!@''CXXFLAGS''@!@CXXFLAGS@!'\
|
|
|
|
-e 's!@''LDFLAGS''@!@LDFLAGS@!'\
|
2008-11-10 22:12:15 +01:00
|
|
|
-e 's!@''LIBDL''@!@LIBDL@!'\
|
2000-07-31 21:29:14 +02:00
|
|
|
-e 's!@''CLIENT_LIBS''@!@CLIENT_LIBS@!' \
|
2005-01-11 21:50:30 +01:00
|
|
|
-e 's!@''ZLIB_LIBS''@!@ZLIB_LIBS@!' \
|
2001-10-08 03:58:07 +02:00
|
|
|
-e 's!@''LIBS''@!@LIBS@!' \
|
2003-11-16 00:37:54 +01:00
|
|
|
-e 's!@''WRAPLIBS''@!@WRAPLIBS@!' \
|
2003-09-23 12:36:01 +02:00
|
|
|
-e 's!@''openssl_libs''@!@openssl_libs@!' \
|
2000-07-31 21:29:14 +02:00
|
|
|
-e 's!@''VERSION''@!@VERSION@!' \
|
2005-09-01 20:01:21 +02:00
|
|
|
-e 's!@''MYSQL_BASE_VERSION''@!@MYSQL_BASE_VERSION@!' \
|
2001-01-19 01:46:13 +01:00
|
|
|
-e 's!@''MYSQL_SERVER_SUFFIX''@!@MYSQL_SERVER_SUFFIX@!' \
|
2000-07-31 21:29:14 +02:00
|
|
|
-e 's!@''COMPILATION_COMMENT''@!@COMPILATION_COMMENT@!' \
|
|
|
|
-e 's!@''MACHINE_TYPE''@!@MACHINE_TYPE@!' \
|
|
|
|
-e 's!@''HOSTNAME''@!@HOSTNAME@!' \
|
|
|
|
-e 's!@''SYSTEM_TYPE''@!@SYSTEM_TYPE@!' \
|
|
|
|
-e 's!@''CHECK_PID''@!@CHECK_PID@!' \
|
|
|
|
-e 's!@''FIND_PROC''@!@FIND_PROC@!' \
|
|
|
|
-e 's!@''MYSQLD_DEFAULT_SWITCHES''@!@MYSQLD_DEFAULT_SWITCHES@!' \
|
|
|
|
-e 's!@''MYSQL_UNIX_ADDR''@!@MYSQL_UNIX_ADDR@!' \
|
|
|
|
-e 's!@''MYSQL_TCP_PORT''@!@MYSQL_TCP_PORT@!' \
|
2007-09-13 16:19:46 +02:00
|
|
|
-e 's!@''MYSQL_TCP_PORT_DEFAULT''@!@MYSQL_TCP_PORT_DEFAULT@!' \
|
2005-04-20 20:10:28 +02:00
|
|
|
-e 's!@''TARGET_LINUX''@!@TARGET_LINUX@!' \
|
2000-07-31 21:29:14 +02:00
|
|
|
-e "s!@""CONF_COMMAND""@!@CONF_COMMAND@!" \
|
|
|
|
-e 's!@''MYSQLD_USER''@!@MYSQLD_USER@!' \
|
2005-02-04 23:21:16 +01:00
|
|
|
-e 's!@''STATIC_NSS_FLAGS''@!@STATIC_NSS_FLAGS@!' \
|
|
|
|
-e 's!@''NON_THREADED_LIBS''@!@NON_THREADED_LIBS@!' \
|
|
|
|
-e 's!@''ZLIB_DEPS''@!@ZLIB_DEPS@!' \
|
2004-10-22 10:57:52 +02:00
|
|
|
-e "s!@MAKE@!$(MAKE)!" \
|
2000-07-31 21:29:14 +02:00
|
|
|
$< > $@-t
|
|
|
|
@CHMOD@ +x $@-t
|
|
|
|
@MV@ $@-t $@
|
2000-08-18 11:48:00 +02:00
|
|
|
|
2007-04-18 13:21:39 +02:00
|
|
|
|
2000-08-18 11:48:00 +02:00
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|