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 21setup_libpinyin_PYTHON = \ 22 main2.py \ 23 config.py \ 24 dicttreeview.py \ 25 shortcuteditor.py \ 26 keyboardshortcut.py \ 27 ibus-libpinyin-preferences.ui \ 28 $(NULL) 29 30setup_libpinyindir = $(datadir)/ibus-libpinyin/setup 31 32libexec_SCRIPTS = \ 33 ibus-setup-libpinyin \ 34 $(NULL) 35 36CLEANFILES = \ 37 *.pyc \ 38 $(NULL) 39 40EXTRA_DIST = \ 41 config.py.in \ 42 ibus-setup-libpinyin.in \ 43 $(NULL) 44 45 46test-libpinyin: 47 $(ENV) DBUS_DEBUG=true \ 48 IBUS_LOCALEDIR=@localedir@ \ 49 IBUS_PKGDATADIR=$(pkgdatadir) \ 50 PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \ 51 $(PYTHON) $(srcdir)/main2.py libpinyin 52 53test-libbopomofo: 54 $(ENV) DBUS_DEBUG=true \ 55 IBUS_LOCALEDIR=@localedir@ \ 56 IBUS_PKGDATADIR=$(pkgdatadir) \ 57 PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \ 58 $(PYTHON) $(srcdir)/main2.py libbopomofo 59