3 # ibus-libpinyin - Intelligent Pinyin engine based on libpinyin for IBus
5 # Copyright (c) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 if IBUS_BUILD_LUA_EXTENSION
34 DISTCHECK_CONFIGURE_FLAGS = \
35 CFLAGS='-g3 -O3 -Wall' \
36 CXXFLAGS='-g3 -O3 -Wall' \
39 ACLOCAL_AMFLAGS = -I m4
43 ibus-libpinyin.spec.in \
55 if test -d .git ; then \
56 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
59 rpm: dist @PACKAGE_NAME@.spec
61 --define "_sourcedir `pwd`" \
62 --define "_builddir `pwd`/rpm" \
63 --define "_srcrpmdir `pwd`/rpm" \
64 --define "_rpmdir `pwd`/rpm" \
65 --define "_specdir `pwd`" \
68 srpm: dist @PACKAGE_NAME@.spec
70 --define "_sourcedir `pwd`" \
71 --define "_builddir `pwd`/rpm" \
72 --define "_srcrpmdir `pwd`/rpm" \
73 --define "_rpmdir `pwd`/rpm" \
74 --define "_specdir `pwd`" \
77 .PHONY: debian/changelog
85 if test -z "$$serie"; then \
86 serie=$$DISTRIB_CODENAME; \
88 if test -z "$$release"; then \
91 s=`cat debian/changelog.in`; \
92 eval "echo \"$${s}\""; \
95 ppa: dist debian/changelog
99 cp $(distdir).tar.gz ppa/@PACKAGE_NAME@_@PACKAGE_VERSION@.orig.tar.gz ; \
101 tar zxvf ../$(distdir).tar.gz ; \
103 cp -a ../../debian . ; \
108 dpkg: dist debian/changelog
113 tar zxvf ../$(distdir).tar.gz ; \
115 cp -a ../../debian . ; \
117 debuild -b -uc -us; \
121 $(RM) -r "`uname -i`"
123 clean-local: clean-rpm