summaryrefslogtreecommitdiff
path: root/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/normalizers/Makefile.am
blob: 64cfe6552fa0b0b4195b0109616429ace0519245 (plain)
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
# Copyright (C) 2013  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

EXTRA_DIST =					\
	CMakeLists.txt

AM_CFLAGS =					\
	$(GROONGA_CFLAGS)

AM_LDFLAGS =					\
	-avoid-version				\
	-module					\
	-no-undefined

LIBS =						\
	$(GROONGA_LIBS)

normalizers_plugins_LTLIBRARIES =
normalizers_plugins_LTLIBRARIES += mysql.la

include mysql_sources.am

ensure-mysql-source-dir:
	@if test -z "$(MYSQL_SOURCE_DIR)"; then		\
	  echo "\$$(MYSQL_SOURCE_DIR) is missing";	\
	  exit 1;					\
	fi

UPDATE_TABLES_TARGETS =								\
	update-general-ci-table							\
	update-unicode-ci-table							\
	update-unicode-ci-except-kana-ci-kana-with-voiced-sound-mark-table	\
	update-unicode-520-ci-table						\
	update-unicode-520-ci-except-kana-ci-kana-with-voiced-sound-mark-table

update-tables: $(UPDATE_TABLES_TARGETS)

update-general-ci-table: ensure-mysql-source-dir
	$(RUBY)						\
	  $(top_srcdir)/tool/generate_utf8_table.rb	\
	  $(MYSQL_SOURCE_DIR)/strings/ctype-utf8.c >	\
	  $(srcdir)/mysql_general_ci_table.h

update-unicode-ci-table: ensure-mysql-source-dir
	$(RUBY)						\
	  $(top_srcdir)/tool/generate_uca_table.rb	\
	  $(MYSQL_SOURCE_DIR)/strings/ctype-uca.c >	\
	  $(srcdir)/mysql_unicode_ci_table.h

update-unicode-ci-except-kana-ci-kana-with-voiced-sound-mark-table: ensure-mysql-source-dir
	$(RUBY)							\
	  $(top_srcdir)/tool/generate_uca_table.rb		\
	  --split-small-kana					\
	  --split-kana-with-voiced-sound-mark			\
	  --split-kana-with-semi-voiced-sound-mark		\
	  --suffix _except_kana_ci_kana_with_voiced_sound_mark	\
	  $(MYSQL_SOURCE_DIR)/strings/ctype-uca.c >		\
	  $(srcdir)/mysql_unicode_ci_except_kana_ci_kana_with_voiced_sound_mark_table.h

update-unicode-520-ci-table: ensure-mysql-source-dir
	$(RUBY)						\
	  $(top_srcdir)/tool/generate_uca_table.rb	\
	  --version=520					\
	  $(MYSQL_SOURCE_DIR)/strings/ctype-uca.c >	\
	  $(srcdir)/mysql_unicode_520_ci_table.h

update-unicode-520-ci-except-kana-ci-kana-with-voiced-sound-mark-table: ensure-mysql-source-dir
	$(RUBY)							\
	  $(top_srcdir)/tool/generate_uca_table.rb		\
	  --version=520						\
	  --split-small-kana					\
	  --split-kana-with-voiced-sound-mark			\
	  --split-kana-with-semi-voiced-sound-mark		\
	  --suffix _except_kana_ci_kana_with_voiced_sound_mark	\
	  $(MYSQL_SOURCE_DIR)/strings/ctype-uca.c >		\
	  $(srcdir)/mysql_unicode_520_ci_except_kana_ci_kana_with_voiced_sound_mark_table.h