1# vim:set noet ts=4: 2# 3# ibus - The Input Bus 4# 5# Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> 6# Copyright (c) 2007-2010 Red Hat, Inc. 7# 8# This library is free software; you can redistribute it and/or 9# modify it under the terms of the GNU Lesser General Public 10# License as published by the Free Software Foundation; either 11# version 2.1 of the License, or (at your option) any later version. 12# 13# This library is distributed in the hope that it will be useful, 14# but WITHOUT ANY WARRANTY; without even the implied warranty of 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16# Lesser General Public License for more details. 17# 18# You should have received a copy of the GNU Lesser General Public 19# License along with this library; if not, write to the Free Software 20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 21# USA 22 23ui_gtk_PYTHON = \ 24 candidatepanel.py \ 25 handle.py \ 26 i18n.py \ 27 icon.py \ 28 languagebar.py \ 29 main.py \ 30 menu.py \ 31 notifications.py \ 32 panel.py \ 33 propitem.py \ 34 toolitem.py \ 35 engineabout.py \ 36 $(NULL) 37ui_gtkdir = $(pkgdatadir)/ui/gtk 38 39libexec_SCRIPTS = \ 40 ibus-ui-gtk \ 41 $(NULL) 42 43component_DATA = \ 44 gtkpanel.xml \ 45 $(NULL) 46componentdir = $(pkgdatadir)/component 47 48CLEANFILES = \ 49 gtkpanel.xml \ 50 *.pyc \ 51 $(NULL) 52 53EXTRA_DIST = \ 54 ibus-ui-gtk.in \ 55 gtkpanel.xml.in \ 56 $(NULL) 57 58gtkpanel.xml: gtkpanel.xml.in 59 $(AM_V_GEN) sed \ 60 -e 's|@VERSION[@]|$(VERSION)|g' \ 61 -e 's|@libexecdir[@]|$(libexecdir)|g' $< > $@.tmp && \ 62 mv $@.tmp $@ 63 64test: 65 $(ENV) DBUS_DEBUG=true \ 66 IBUS_PREFIX=@prefix@ \ 67 IBUS_DATAROOTDIR=@datarootdir@ \ 68 IBUS_LOCALEDIR=@localedir@ \ 69 PYTHONPATH=$(top_srcdir) \ 70 $(PYTHON) $(srcdir)/main.py --replace 71 72-include $(top_srcdir)/git.mk 73