b73f375fea3d1b9a17cf7a45380b6df24553ee57
[platform/upstream/ibus-libpinyin.git] / setup / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus-pinyin - The Chinese PinYin engine for IBus
4 #
5 # Copyright (c) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11 #
12 # This program 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 General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 setup_pinyin_PYTHON = \
22         main.py \
23         main2.py \
24         version.py \
25         ibus-pinyin-preferences.ui \
26         ibus-libpinyin-preferences.ui \
27         $(NULL)
28
29 setup_pinyindir = $(datadir)/ibus-pinyin/setup
30
31 libexec_SCRIPTS = \
32         ibus-setup-pinyin \
33         ibus-setup-libpinyin \
34         $(NULL)
35
36 CLEANFILES = \
37         *.pyc \
38         $(NULL)
39
40 EXTRA_DIST = \
41         version.py.in \
42         ibus-setup-pinyin.in \
43         ibus-setup-libpinyin.in \
44         $(NULL)
45
46 test-pinyin:
47         $(ENV) DBUS_DEBUG=true \
48                    IBUS_LOCALEDIR=@localedir@ \
49                    PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
50                    $(PYTHON) $(srcdir)/main.py pinyin
51
52 test-bopomofo:
53         $(ENV) DBUS_DEBUG=true \
54                    IBUS_LOCALEDIR=@localedir@ \
55                    PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
56                    $(PYTHON) $(srcdir)/main.py bopomofo
57
58 test-libpinyin:
59         $(ENV) DBUS_DEBUG=true \
60                    IBUS_LOCALEDIR=@localedir@ \
61                    PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
62                    $(PYTHON) $(srcdir)/main2.py pinyin
63
64 test-libbopomofo:
65         $(ENV) DBUS_DEBUG=true \
66                    IBUS_LOCALEDIR=@localedir@ \
67                    PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
68                    $(PYTHON) $(srcdir)/main2.py bopomofo