Cleanup the vala code of gtk3 panel and tool by:
[platform/upstream/ibus.git] / bindings / vala / 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 vapidir = $(datadir)/vala/vapi
24 dist_vapi_DATA = \
25         ibus-@IBUS_API_VERSION@.vapi \
26         ibus-@IBUS_API_VERSION@.deps \
27         $(NULL)
28
29 # Don't rebuild vapi every time gir is updated.
30 vapi_deps = \
31         $(srcdir)/IBus-1.0.metadata \
32         $(srcdir)/IBus-1.0-custom.vala \
33         | \
34         $(top_srcdir)/src/IBus-@IBUS_API_VERSION@.gir \
35         $(NULL)
36
37 ibus-@IBUS_API_VERSION@.vapi: $(vapi_deps)
38         $(AM_V_GEN) $(VAPIGEN) --library ibus-@IBUS_API_VERSION@ \
39                         --pkg gio-2.0 \
40                         --metadatadir=$(srcdir) \
41                         $(top_srcdir)/src/IBus-@IBUS_API_VERSION@.gir \
42                         $(srcdir)/IBus-1.0-custom.vala
43
44 EXTRA_DIST = \
45         IBus-1.0.metadata \
46         IBus-1.0-custom.vala \
47         config.vapi \
48         $(NULL)
49
50 MAINTAINERCLEANFILES = ibus-@IBUS_API_VERSION@.vapi
51
52 -include $(top_srcdir)/git.mk