Check for gsettings-schema-convert for dconf support
[platform/upstream/ibus.git] / 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.1 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 GNU
16 # 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 library; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
21 # USA
22
23 NULL =
24
25 if ENABLE_UI
26 UI_DIR = ui
27 endif
28
29 if ENABLE_ENGINE
30 ENGINE_DIR = engine
31 endif
32
33 if ENABLE_SETUP
34 SETUP_DIR = setup
35 endif
36
37 if ENABLE_PYTHON_LIBRARY
38 PYTHON_LIB_DIRS = ibus
39 endif
40
41 if ENABLE_DAEMON
42 DAEMON_DIR = \
43         bus \
44         $(NULL)
45 endif
46
47 SUBDIRS = \
48         src \
49         bindings \
50         util \
51         conf \
52         client \
53         tools \
54         data \
55         m4 \
56         po \
57         docs \
58         $(ENGINE_DIR) \
59         $(UI_DIR) \
60         $(DAEMON_DIR) \
61         $(PYTHON_LIB_DIRS) \
62         $(SETUP_DIR) \
63         $(NULL)
64
65 ACLOCAL_AMFLAGS = -I m4
66
67 pkgconfigdir = $(libdir)/pkgconfig
68 pkgconfig_DATA = ibus-@IBUS_API_VERSION@.pc
69
70 ibus_pc_in = ibus-@IBUS_API_VERSION@.pc.in
71 EXTRA_DIST = \
72         autogen.sh \
73         $(ibus_pc_in) \
74         ibus.spec.in \
75         python-config.py \
76         xinput-ibus \
77         $(NULL)
78
79 noinst_DIST = \
80         $(NULL)
81
82 DISTCLEANFILES = \
83         po/stamp-it \
84         $(NULL)
85
86 install-data-hook:
87         $(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
88
89 DISTCHECK_CONFIGURE_FLAGS = \
90         --enable-gtk-doc \
91         --disable-schemas-install \
92         --disable-introspection \
93         $(NULL)
94
95 dist-hook:
96         if test -d .git ; then \
97                 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
98         fi
99
100 distclean-local:
101         if test "x$(srcdir)" = "x."; then :; else \
102                 rm -f ChangeLog; \
103         fi
104
105 MAINTAINERCLEANFILES = \
106         $(srcdir)/ChangeLog \
107         $(NULL)
108
109 rpm: dist @PACKAGE_NAME@.spec
110         rpmbuild -bb \
111                         --define "_sourcedir `pwd`" \
112                         --define "_builddir `pwd`/rpm" \
113                         --define "_srcrpmdir `pwd`/rpm" \
114                         --define "_rpmdir `pwd`"/rpm \
115                         --define "_specdir `pwd`/rpm" \
116                         @PACKAGE_NAME@.spec
117
118 srpm: dist @PACKAGE_NAME@.spec
119         rpmbuild -bs \
120                         --define "_sourcedir `pwd`" \
121                         --define "_builddir `pwd`/rpm" \
122                         --define "_srcrpmdir `pwd`/rpm" \
123                         --define "_rpmdir `pwd`/rpm" \
124                         --define "_specdir `pwd`/rpm" \
125                         @PACKAGE_NAME@.spec
126
127 .PHONY: debian/changelog
128 debian/changelog:
129         $(AM_V_GEN) \
130         ( \
131                 . /etc/lsb-release; \
132                 date=`date -R`; \
133                 version=@VERSION@; \
134                 serie=$(serie); \
135                 if test -z "$$serie"; then \
136                   serie=$$DISTRIB_CODENAME; \
137                 fi; \
138                 if test -z "$$release"; then \
139                   release=1; \
140                 fi; \
141                 s=`cat debian/changelog.in`; \
142                 eval "echo \"$${s}\""; \
143         ) > $@
144
145 ppa: dist debian/changelog
146         $(AM_V_GEN) \
147         ( \
148                 mkdir ppa; \
149                 cd ppa; \
150                 tar zxvf ../$(distdir).tar.gz ; \
151                 cd $(distdir); \
152                 cp -a ../../debian . ; \
153                 cd debian; \
154                 debuild -S -sa ; \
155         )
156
157 dpkg: dist debian/changelog
158         $(AM_V_GEN) \
159         ( \
160                 mkdir ppa; \
161                 cd ppa; \
162                 tar zxvf ../$(distdir).tar.gz ; \
163                 cd $(distdir); \
164                 cp -a ../../debian . ; \
165                 cd debian; \
166                 debuild -b -us -uc; \
167         )
168
169 clean-rpm:
170         $(RM) -r "`uname -i`"
171
172 clean-local: clean-rpm
173
174 git-tag:
175         git tag -s @PACKAGE_VERSION@
176
177 git-clean-tree:
178         git clean -d -f -x
179
180 GITIGNOREFILES = \
181         INSTALL \
182         aclocal.m4 \
183         compile \
184         config.guess \
185         config.h.in \
186         config.sub \
187         depcomp \
188         gtk-doc.make \
189         install-sh \
190         ltmain.sh \
191         missing \
192         mkinstalldirs \
193         py-compile \
194         stamp-h* \
195         $(NULL)
196
197 -include $(top_srcdir)/git.mk