update setup/Makefile.am
[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         main2.py \
23         version.py \
24         ibus-libpinyin-preferences.ui \
25         $(NULL)
26
27 setup_pinyindir = $(datadir)/ibus-pinyin/setup
28
29 libexec_SCRIPTS = \
30         ibus-setup-libpinyin \
31         $(NULL)
32
33 CLEANFILES = \
34         *.pyc \
35         $(NULL)
36
37 EXTRA_DIST = \
38         version.py.in \
39         ibus-setup-libpinyin.in \
40         $(NULL)
41
42 test-libpinyin:
43         $(ENV) DBUS_DEBUG=true \
44                    IBUS_LOCALEDIR=@localedir@ \
45                    PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
46                    $(PYTHON) $(srcdir)/main2.py pinyin
47
48 test-libbopomofo:
49         $(ENV) DBUS_DEBUG=true \
50                    IBUS_LOCALEDIR=@localedir@ \
51                    PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
52                    $(PYTHON) $(srcdir)/main2.py bopomofo