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.1 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 GNU
16 # 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 library; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
37 if ENABLE_PYTHON_LIBRARY
38 PYTHON_LIB_DIRS = ibus
65 ACLOCAL_AMFLAGS = -I m4
67 pkgconfigdir = $(libdir)/pkgconfig
68 pkgconfig_DATA = ibus-@IBUS_API_VERSION@.pc
70 ibus_pc_in = ibus-@IBUS_API_VERSION@.pc.in
87 $(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
89 DISTCHECK_CONFIGURE_FLAGS = \
91 --disable-schemas-install \
92 --disable-introspection \
96 if test -d .git ; then \
97 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
101 if test "x$(srcdir)" = "x."; then :; else \
105 MAINTAINERCLEANFILES = \
106 $(srcdir)/ChangeLog \
109 rpm: dist @PACKAGE_NAME@.spec
111 --define "_sourcedir `pwd`" \
112 --define "_builddir `pwd`/rpm" \
113 --define "_srcrpmdir `pwd`/rpm" \
114 --define "_rpmdir `pwd`"/rpm \
115 --define "_specdir `pwd`/rpm" \
118 srpm: dist @PACKAGE_NAME@.spec
120 --define "_sourcedir `pwd`" \
121 --define "_builddir `pwd`/rpm" \
122 --define "_srcrpmdir `pwd`/rpm" \
123 --define "_rpmdir `pwd`/rpm" \
124 --define "_specdir `pwd`/rpm" \
127 .PHONY: debian/changelog
131 . /etc/lsb-release; \
135 if test -z "$$serie"; then \
136 serie=$$DISTRIB_CODENAME; \
138 if test -z "$$release"; then \
141 s=`cat debian/changelog.in`; \
142 eval "echo \"$${s}\""; \
145 ppa: dist debian/changelog
150 tar zxvf ../$(distdir).tar.gz ; \
152 cp -a ../../debian . ; \
157 dpkg: dist debian/changelog
162 tar zxvf ../$(distdir).tar.gz ; \
164 cp -a ../../debian . ; \
166 debuild -b -us -uc; \
170 $(RM) -r "`uname -i`"
172 clean-local: clean-rpm
175 git tag -s @PACKAGE_VERSION@
197 -include $(top_srcdir)/git.mk