f5f5c082a220c00cf6961cb9147f620355b49644
[platform/upstream/ibus.git] / memconf / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus - The Input Bus
4 #
5 # Copyright (c) 2010, Google Inc. All rights reserved.
6 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
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-@IBUS_API_VERSION@.la
24
25 libexec_PROGRAMS = \
26         ibus-memconf \
27         $(NULL)
28
29 ibus_memconf_SOURCES = \
30         main.c \
31         config.c \
32         config.h \
33         $(NULL)
34 ibus_memconf_CFLAGS = \
35         @GLIB2_CFLAGS@ \
36         @GIO2_CFLAGS@ \
37         -DG_LOG_DOMAIN=\"IBUS\" \
38         -I$(top_srcdir)/src \
39         -I$(top_builddir)/src \
40         $(NULL)
41 ibus_memconf_LDADD = \
42         @GOBJECT2_LIBS@ \
43         @GLIB2_LIBS@ \
44         @GIO2_LIBS@ \
45         $(libibus) \
46         $(NULL)
47 ibus_memconf_DEPENDENCIES = \
48         $(libibus) \
49         $(NULL)
50
51 component_DATA = \
52         memconf.xml \
53         $(NULL)
54
55 componentdir = $(pkgdatadir)/component
56
57 CLEANFILES = \
58         memconf.xml \
59         $(NULL)
60
61 EXTRA_DIST = \
62         memconf.xml.in.in \
63         $(NULL)
64
65 memconf.xml: memconf.xml.in
66         $(AM_V_GEN) \
67         ( \
68                 libexecdir=${libexecdir}; \
69                 s=`cat $<`; \
70                 eval "echo \"$${s}\""; \
71         ) > $@
72
73 $(libibus):
74         $(MAKE) -C $(top_builddir)/src
75
76 -include $(top_srcdir)/git.mk