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 ; \
107 rpm: dist @PACKAGE_NAME@.spec
109 --define "_sourcedir `pwd`" \
110 --define "_builddir `pwd`/rpm" \
111 --define "_srcrpmdir `pwd`/rpm" \
112 --define "_rpmdir `pwd`"/rpm \
113 --define "_specdir `pwd`/rpm" \
116 srpm: 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 .PHONY: debian/changelog
129 . /etc/lsb-release; \
133 if test -z "$$serie"; then \
134 serie=$$DISTRIB_CODENAME; \
136 if test -z "$$release"; then \
139 s=`cat debian/changelog.in`; \
140 eval "echo \"$${s}\""; \
143 ppa: dist debian/changelog
148 tar zxvf ../$(distdir).tar.gz ; \
150 cp -a ../../debian . ; \
155 dpkg: dist debian/changelog
160 tar zxvf ../$(distdir).tar.gz ; \
162 cp -a ../../debian . ; \
164 debuild -b -us -uc; \
168 $(RM) -r "`uname -i`"
170 clean-local: clean-rpm
173 git tag -s @PACKAGE_VERSION@
178 -include $(top_srcdir)/git.mk