Fix make distcheck errors.
[platform/upstream/ibus.git] / gconf / 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 libibus = $(top_builddir)/src/libibus.la
24
25 if ENABLE_GCONF
26 libexec_PROGRAMS = \
27         ibus-gconf \
28         $(NULL)
29 endif
30
31 ibus_gconf_SOURCES = \
32         main.c \
33         config.c \
34         config.h \
35         $(NULL)
36 ibus_gconf_CFLAGS = \
37         @GLIB2_CFLAGS@ \
38         @GCONF_CFLAGS@ \
39         @DBUS_CFLAGS@ \
40         -DG_LOG_DOMAIN=\"IBUS\" \
41         -I$(top_srcdir)/src \
42         -I$(top_builddir)/src \
43         $(NULL)
44 ibus_gconf_LDADD = \
45         @GOBJECT2_LIBS@ \
46         @GLIB2_LIBS@ \
47         @GCONF_LIBS@ \
48         @DBUS_LIBS@ \
49         $(libibus) \
50         $(NULL)
51 ibus_gconf_DEPENDENCIES = \
52         $(libibus) \
53         $(NULL)
54
55 if ENABLE_GCONF
56 component_DATA = \
57         gconf.xml \
58         $(NULL)
59 endif
60
61 componentdir = $(pkgdatadir)/component
62
63 CLEANFILES = \
64         gconf.xml \
65         *.pyc \
66         $(NULL)
67
68 EXTRA_DIST = \
69         gconf.xml.in.in \
70         $(NULL)
71
72 gconf.xml: gconf.xml.in
73         $(AM_V_GEN) \
74         ( \
75                 libexecdir=${libexecdir}; \
76                 s=`cat $<`; \
77                 eval "echo \"$${s}\""; \
78         ) > $@
79
80 $(libibus):
81         $(MAKE) -C $(top_builddir)/src