rename version.py to config.py
[platform/upstream/ibus-libpinyin.git] / setup / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus-libpinyin - Intelligent Pinyin engine based on libpinyin 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20
21 setup_libpinyin_PYTHON = \
22         main2.py \
23         config.py \
24         dicttreeview.py \
25         ibus-libpinyin-preferences.ui \
26         $(NULL)
27
28 setup_libpinyindir = $(datadir)/ibus-libpinyin/setup
29
30 libexec_SCRIPTS = \
31         ibus-setup-libpinyin \
32         $(NULL)
33
34 CLEANFILES = \
35         *.pyc \
36         $(NULL)
37
38 EXTRA_DIST = \
39         config.py.in \
40         ibus-setup-libpinyin.in \
41         $(NULL)
42
43 test-libpinyin:
44         $(ENV) DBUS_DEBUG=true \
45                    IBUS_LOCALEDIR=@localedir@ \
46                    PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
47                    $(PYTHON) $(srcdir)/main2.py pinyin
48
49 test-libbopomofo:
50         $(ENV) DBUS_DEBUG=true \
51                    IBUS_LOCALEDIR=@localedir@ \
52                    PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
53                    $(PYTHON) $(srcdir)/main2.py bopomofo