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
66 ACLOCAL_AMFLAGS = -I m4
68 pkgconfigdir = $(libdir)/pkgconfig
69 pkgconfig_DATA = ibus-@IBUS_API_VERSION@.pc
71 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 ; \
100 rpm: dist @PACKAGE_NAME@.spec
102 --define "_sourcedir `pwd`" \
103 --define "_builddir `pwd`/rpm" \
104 --define "_srcrpmdir `pwd`/rpm" \
105 --define "_rpmdir `pwd`"/rpm \
106 --define "_specdir `pwd`/rpm" \
109 srpm: 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 .PHONY: debian/changelog
122 . /etc/lsb-release; \
126 if test -z "$$serie"; then \
127 serie=$$DISTRIB_CODENAME; \
129 if test -z "$$release"; then \
132 s=`cat debian/changelog.in`; \
133 eval "echo \"$${s}\""; \
136 ppa: dist debian/changelog
141 tar zxvf ../$(distdir).tar.gz ; \
143 cp -a ../../debian . ; \
148 dpkg: dist debian/changelog
153 tar zxvf ../$(distdir).tar.gz ; \
155 cp -a ../../debian . ; \
157 debuild -b -us -uc; \
161 $(RM) -r "`uname -i`"
163 clean-local: clean-rpm
166 git tag -s @PACKAGE_VERSION@
171 -include $(top_srcdir)/git.mk