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
74 ACLOCAL_AMFLAGS = -I m4
76 pkgconfigdir = $(libdir)/pkgconfig
77 pkgconfig_DATA = ibus-@IBUS_API_VERSION@.pc
79 ibus_pc_in = ibus-@IBUS_API_VERSION@.pc.in
95 $(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
97 DISTCHECK_CONFIGURE_FLAGS = \
99 --disable-schemas-install \
100 --disable-introspection \
104 if test -d .git ; then \
105 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
109 if test "x$(srcdir)" = "x."; then :; else \
113 MAINTAINERCLEANFILES = \
114 $(srcdir)/ChangeLog \
117 rpm: dist @PACKAGE_NAME@.spec
119 --define "_sourcedir `pwd`" \
120 --define "_builddir `pwd`/rpm" \
121 --define "_srcrpmdir `pwd`/rpm" \
122 --define "_rpmdir `pwd`"/rpm \
123 --define "_specdir `pwd`/rpm" \
126 srpm: dist @PACKAGE_NAME@.spec
128 --define "_sourcedir `pwd`" \
129 --define "_builddir `pwd`/rpm" \
130 --define "_srcrpmdir `pwd`/rpm" \
131 --define "_rpmdir `pwd`/rpm" \
132 --define "_specdir `pwd`/rpm" \
135 .PHONY: debian/changelog
139 . /etc/lsb-release; \
143 if test -z "$$serie"; then \
144 serie=$$DISTRIB_CODENAME; \
146 if test -z "$$release"; then \
149 s=`cat debian/changelog.in`; \
150 eval "echo \"$${s}\""; \
153 ppa: dist debian/changelog
158 tar zxvf ../$(distdir).tar.gz ; \
160 cp -a ../../debian . ; \
165 dpkg: dist debian/changelog
170 tar zxvf ../$(distdir).tar.gz ; \
172 cp -a ../../debian . ; \
174 debuild -b -us -uc; \
178 $(RM) -r "`uname -i`"
180 clean-local: clean-rpm
183 git tag -s @PACKAGE_VERSION@
205 -include $(top_srcdir)/git.mk