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
73 ACLOCAL_AMFLAGS = -I m4
75 pkgconfigdir = $(libdir)/pkgconfig
76 pkgconfig_DATA = ibus-@IBUS_API_VERSION@.pc
78 ibus_pc_in = ibus-@IBUS_API_VERSION@.pc.in
94 $(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
96 DISTCHECK_CONFIGURE_FLAGS = \
98 --disable-schemas-install \
99 --disable-introspection \
103 if test -d .git ; then \
104 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
108 if test "x$(srcdir)" = "x."; then :; else \
112 MAINTAINERCLEANFILES = \
113 $(srcdir)/ChangeLog \
116 rpm: dist @PACKAGE_NAME@.spec
118 --define "_sourcedir `pwd`" \
119 --define "_builddir `pwd`/rpm" \
120 --define "_srcrpmdir `pwd`/rpm" \
121 --define "_rpmdir `pwd`"/rpm \
122 --define "_specdir `pwd`/rpm" \
125 srpm: dist @PACKAGE_NAME@.spec
127 --define "_sourcedir `pwd`" \
128 --define "_builddir `pwd`/rpm" \
129 --define "_srcrpmdir `pwd`/rpm" \
130 --define "_rpmdir `pwd`/rpm" \
131 --define "_specdir `pwd`/rpm" \
134 .PHONY: debian/changelog
138 . /etc/lsb-release; \
142 if test -z "$$serie"; then \
143 serie=$$DISTRIB_CODENAME; \
145 if test -z "$$release"; then \
148 s=`cat debian/changelog.in`; \
149 eval "echo \"$${s}\""; \
152 ppa: dist debian/changelog
157 tar zxvf ../$(distdir).tar.gz ; \
159 cp -a ../../debian . ; \
164 dpkg: dist debian/changelog
169 tar zxvf ../$(distdir).tar.gz ; \
171 cp -a ../../debian . ; \
173 debuild -b -us -uc; \
177 $(RM) -r "`uname -i`"
179 clean-local: clean-rpm
182 git tag -s @PACKAGE_VERSION@
204 -include $(top_srcdir)/git.mk