8400268f4655a2477fce8bf203e46a9b252bc12c
[platform/upstream/ibus.git] / engine / anthy / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus - The Input Bus
4 #
5 # Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2 of the License, or (at your option) any later version.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this program; if not, write to the
19 # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20 # Boston, MA  02111-1307  USA
21
22 engine_anthy_PYTHON = \
23         engine.py \
24         factory.py \
25         main.py \
26         tables.py \
27         test.py \
28         $(NULL)
29
30 engine_anthydir = $(pkgdatadir)/engine/anthy
31
32 anthy_DATA = \
33         anthy.py \
34         $(NULL)
35
36 anthy_LTLIBRARIES = _anthy.la
37
38 anthydir = @pyexecdir@
39
40 _anthy_la_SOURCES = \
41         $(NULL)
42
43 nodist__anthy_la_SOURCES = \
44         anthy_wrap.c \
45         $(NULL)
46
47 _anthy_la_CFLAGS = \
48         @ANTHY_CFLAGS@ \
49         @PYTHON_CFLAGS@ \
50         $(NULL)
51
52 _anthy_la_LDFLAGS = \
53         @ANTHY_LIBS@ \
54         -rpath $(anthydir) \
55         -avoid-version \
56         -module \
57         $(NULL)
58
59 libexec_SCRIPTS = ibus-engine-anthy
60
61 anthy.py anthy_wrap.c: anthy.i
62         $(SWIG) -python -I/usr/include -o anthy_wrap.c $(srcdir)/anthy.i
63
64 test:
65         $(ENV) PYTHONPATH=$(top_srcdir):$(builddir)/.libs $(PYTHON) $(srcdir)/main.py
66
67 EXTRA_DIST = \
68         anthy.i \
69         ibus-engine-anthy.in \
70         $(NULL)
71
72 CLEANFILES = \
73         anthy.py \
74         anthy_wrap.* \
75         *.pyc \
76         $(MULL)
77
78 DISTCLEANFILES = \
79         $(MULL)