Fix make distcheck errors.
[platform/upstream/ibus.git] / ui / gtk / Makefile.am
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 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
16 # GNU 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 program; if not, write to the
20 # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21 # Boston, MA  02111-1307  USA
22
23 if ENABLE_PYTHON
24 ui_gtk_PYTHON = \
25         candidatepanel.py \
26         handle.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)
37 ui_gtkdir = $(pkgdatadir)/ui/gtk
38
39 libexec_SCRIPTS = \
40         ibus-ui-gtk \
41         $(NULL)
42
43 component_DATA = \
44         gtkpanel.xml \
45         $(NULL)
46 componentdir = $(pkgdatadir)/component
47 endif
48
49 CLEANFILES = \
50         gtkpanel.xml \
51         *.pyc \
52         $(NULL)
53
54 EXTRA_DIST = \
55         ibus-ui-gtk.in \
56         gtkpanel.xml.in.in \
57         $(NULL)
58
59 gtkpanel.xml: gtkpanel.xml.in
60         $(AM_V_GEN) \
61         ( \
62                 libexecdir=${libexecdir}; \
63                 s=`cat $<`; \
64                 eval "echo \"$${s}\""; \
65         ) > $@
66
67 test:
68         $(ENV) DBUS_DEBUG=true \
69                 IBUS_PREFIX=@prefix@ \
70                 IBUS_DATAROOTDIR=@datarootdir@ \
71                 IBUS_LOCALEDIR=@localedir@ \
72                 PYTHONPATH=$(top_srcdir) \
73                 $(PYTHON) $(srcdir)/main.py