Fix make distcheck errors.
[platform/upstream/ibus.git] / setup / 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 ibussetup_PYTHON = \
25         main.py \
26         icon.py \
27         enginecombobox.py \
28         enginetreeview.py \
29         engineabout.py \
30         keyboardshortcut.py \
31         $(NULL)
32
33 ibussetup_DATA = \
34         setup.ui \
35         $(NULL)
36
37 bin_SCRIPTS = ibus-setup
38 ibussetupdir = $(pkgdatadir)/setup
39
40 desktop_in_files = ibus-setup.desktop.in
41 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
42 desktopdir = $(datadir)/applications
43 @INTLTOOL_DESKTOP_RULE@
44 endif
45
46 CLEANFILES = \
47         *.pyc \
48         ibus-setup \
49         $(NULL)
50
51 EXTRA_DIST = \
52         ibus-setup.in \
53         setup.ui \
54         ibus-setup.desktop.in \
55         $(NULL)
56
57 DISTCLEANFILES = \
58         $(desktop_DATA) \
59         $(NULL)
60
61 test:
62         $(ENV) \
63                 PYTHONPATH=$(top_srcdir) \
64                 IBUS_PREFIX="@prefix@" \
65                 IBUS_LOCALEDIR="@localedir@" \
66                 $(PYTHON) \
67                 $(srcdir)/main.py