Add ibus-dconf.
[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 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 NULL =
24
25 if ENABLE_PYTHON
26 PYTHON_DIRS =       \
27         ibus            \
28         ui              \
29         setup           \
30         $(NULL)
31 endif
32
33 if ENABLE_GCONF
34 GCONF_DIRS =        \
35         gconf           \
36         $(NULL)
37 endif
38
39 if ENABLE_DAEMON
40 DAEMON_DIRS =       \
41         bus             \
42         $(NULL)
43 endif
44
45 if ENABLE_MEMCONF
46 MEMCONF_DIRS = \
47         memconf \
48         $(NULL)
49 endif
50
51 if ENABLE_DCONF
52 DCONF_DIRS = \
53         dconf \
54         $(NULL)
55 endif
56
57 SUBDIRS =           \
58         src             \
59         util            \
60         client          \
61         data            \
62         m4              \
63         po              \
64         docs            \
65         bindings        \
66         $(DAEMON_DIRS)  \
67         $(PYTHON_DIRS)  \
68         $(GCONF_DIRS)   \
69         $(MEMCONF_DIRS) \
70         $(DCONF_DIRS)   \
71         $(NULL)
72
73 ACLOCAL_AMFLAGS = -I m4
74
75 pkgconfigdir = $(libdir)/pkgconfig
76 pkgconfig_DATA = ibus-@IBUS_API_VERSION@.pc
77
78 ibus_pc_in = ibus-@IBUS_API_VERSION@.pc.in
79 EXTRA_DIST = \
80         autogen.sh \
81         $(ibus_pc_in) \
82         ibus.spec.in \
83         python-config.py \
84         $(NULL)
85
86 noinst_DIST = \
87         $(NULL)
88
89 DISTCLEANFILES = \
90         po/stamp-it \
91         $(NULL)
92
93 install-data-hook:
94         $(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
95
96 DISTCHECK_CONFIGURE_FLAGS = \
97         --enable-gtk-doc \
98         --disable-schemas-install \
99         --disable-introspection \
100         $(NULL)
101
102 dist-hook:
103         if test -d .git ; then \
104                 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
105         fi
106
107 rpm: dist @PACKAGE_NAME@.spec
108         rpmbuild -bb \
109                         --define "_sourcedir `pwd`" \
110                         --define "_builddir `pwd`/rpm" \
111                         --define "_srcrpmdir `pwd`/rpm" \
112                         --define "_rpmdir `pwd`"/rpm \
113                         --define "_specdir `pwd`/rpm" \
114                         @PACKAGE_NAME@.spec
115
116 srpm: dist @PACKAGE_NAME@.spec
117         rpmbuild -bs \
118                         --define "_sourcedir `pwd`" \
119                         --define "_builddir `pwd`/rpm" \
120                         --define "_srcrpmdir `pwd`/rpm" \
121                         --define "_rpmdir `pwd`/rpm" \
122                         --define "_specdir `pwd`/rpm" \
123                         @PACKAGE_NAME@.spec
124
125 .PHONY: debian/changelog
126 debian/changelog:
127         $(AM_V_GEN) \
128         ( \
129                 . /etc/lsb-release; \
130                 date=`date -R`; \
131                 version=@VERSION@; \
132                 serie=$(serie); \
133                 if test -z "$$serie"; then \
134                   serie=$$DISTRIB_CODENAME; \
135                 fi; \
136                 if test -z "$$release"; then \
137                   release=1; \
138                 fi; \
139                 s=`cat debian/changelog.in`; \
140                 eval "echo \"$${s}\""; \
141         ) > $@
142
143 ppa: dist debian/changelog
144         $(AM_V_GEN) \
145         ( \
146                 mkdir ppa; \
147                 cd ppa; \
148                 tar zxvf ../$(distdir).tar.gz ; \
149                 cd $(distdir); \
150                 cp -a ../../debian . ; \
151                 cd debian; \
152                 debuild -S -sa ; \
153         )
154
155 dpkg: dist debian/changelog
156         $(AM_V_GEN) \
157         ( \
158                 mkdir ppa; \
159                 cd ppa; \
160                 tar zxvf ../$(distdir).tar.gz ; \
161                 cd $(distdir); \
162                 cp -a ../../debian . ; \
163                 cd debian; \
164                 debuild -b -us -uc; \
165         )
166
167 clean-rpm:
168         $(RM) -r "`uname -i`"
169
170 clean-local: clean-rpm
171
172 git-tag:
173         git tag -s @PACKAGE_VERSION@
174
175 git-clean-tree:
176         git clean -d -f -x
177
178 -include $(top_srcdir)/git.mk