5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
6 # Copyright (c) 2007-2010 Red Hat, Inc.
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.
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.
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
31 if ENABLE_PYTHON_LIBRARY
32 PYTHON_LIB_DIRS = ibus
59 ACLOCAL_AMFLAGS = -I m4
61 pkgconfigdir = $(libdir)/pkgconfig
62 pkgconfig_DATA = ibus-@IBUS_API_VERSION@.pc
64 ibus_pc_in = ibus-@IBUS_API_VERSION@.pc.in
80 $(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
82 DISTCHECK_CONFIGURE_FLAGS = \
84 --disable-schemas-install \
85 --disable-introspection \
89 if test -d .git ; then \
90 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
94 if test "x$(srcdir)" = "x."; then :; else \
98 MAINTAINERCLEANFILES = \
102 rpm: dist @PACKAGE_NAME@.spec
104 --define "_sourcedir `pwd`" \
105 --define "_builddir `pwd`/rpm" \
106 --define "_srcrpmdir `pwd`/rpm" \
107 --define "_rpmdir `pwd`"/rpm \
108 --define "_specdir `pwd`/rpm" \
111 srpm: dist @PACKAGE_NAME@.spec
113 --define "_sourcedir `pwd`" \
114 --define "_builddir `pwd`/rpm" \
115 --define "_srcrpmdir `pwd`/rpm" \
116 --define "_rpmdir `pwd`/rpm" \
117 --define "_specdir `pwd`/rpm" \
120 .PHONY: debian/changelog
124 . /etc/lsb-release; \
128 if test -z "$$serie"; then \
129 serie=$$DISTRIB_CODENAME; \
131 if test -z "$$release"; then \
134 s=`cat debian/changelog.in`; \
135 eval "echo \"$${s}\""; \
138 ppa: dist debian/changelog
143 tar zxvf ../$(distdir).tar.gz ; \
145 cp -a ../../debian . ; \
150 dpkg: dist debian/changelog
155 tar zxvf ../$(distdir).tar.gz ; \
157 cp -a ../../debian . ; \
159 debuild -b -us -uc; \
163 $(RM) -r "`uname -i`"
165 clean-local: clean-rpm
168 git tag -s @PACKAGE_VERSION@
190 -include $(top_srcdir)/git.mk