2008-05-12 11:18:48 +04:00
|
|
|
# vim:set noet ts=4:
|
|
|
|
#
|
|
|
|
# ibus - The Input Bus
|
|
|
|
#
|
2010-01-09 22:29:59 +03:00
|
|
|
# Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
|
|
|
|
# Copyright (c) 2007-2010 Red Hat, Inc.
|
2008-05-12 11:18:48 +04:00
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this program; if not, write to the
|
|
|
|
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
|
|
# Boston, MA 02111-1307 USA
|
2008-06-29 12:20:23 +04:00
|
|
|
|
2010-06-16 19:47:09 +04:00
|
|
|
NULL =
|
|
|
|
|
2010-06-06 09:44:07 +04:00
|
|
|
if ENABLE_PYTHON
|
2010-06-16 19:47:09 +04:00
|
|
|
PYTHON_DIRS = \
|
|
|
|
ibus \
|
|
|
|
ui \
|
|
|
|
setup \
|
2010-06-06 09:44:07 +04:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_GCONF
|
2010-06-16 19:47:09 +04:00
|
|
|
GCONF_DIRS = \
|
|
|
|
gconf \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_DAEMON
|
|
|
|
DAEMON_DIRS = \
|
|
|
|
bus \
|
2010-06-06 09:44:07 +04:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2010-03-30 08:45:19 +04:00
|
|
|
if ENABLE_MEMCONF
|
2010-07-23 11:25:45 +04:00
|
|
|
MEMCONF_DIRS = \
|
2010-03-30 08:45:19 +04:00
|
|
|
memconf \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2010-06-16 19:47:09 +04:00
|
|
|
SUBDIRS = \
|
|
|
|
src \
|
|
|
|
util \
|
|
|
|
client \
|
|
|
|
data \
|
|
|
|
m4 \
|
|
|
|
po \
|
|
|
|
docs \
|
|
|
|
bindings \
|
|
|
|
$(DAEMON_DIRS) \
|
|
|
|
$(PYTHON_DIRS) \
|
|
|
|
$(GCONF_DIRS) \
|
2010-07-23 11:25:45 +04:00
|
|
|
$(MEMCONF_DIRS) \
|
2010-03-29 11:28:26 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2008-05-12 11:18:48 +04:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2009-02-05 05:39:56 +03:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2010-10-19 13:23:19 +04:00
|
|
|
pkgconfig_DATA = ibus-@IBUS_API_VERSION@.pc
|
2009-02-05 05:39:56 +03:00
|
|
|
|
2010-10-19 13:23:19 +04:00
|
|
|
ibus_pc_in = ibus-@IBUS_API_VERSION@.pc.in
|
2008-06-19 14:38:44 +04:00
|
|
|
EXTRA_DIST = \
|
|
|
|
autogen.sh \
|
2010-10-19 13:23:19 +04:00
|
|
|
$(ibus_pc_in) \
|
2008-06-24 21:12:28 +04:00
|
|
|
ibus.spec.in \
|
2008-06-19 17:11:19 +04:00
|
|
|
python-config.py \
|
2008-05-12 11:18:48 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2008-06-19 14:38:44 +04:00
|
|
|
noinst_DIST = \
|
2008-05-12 11:18:48 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2008-06-24 13:06:59 +04:00
|
|
|
DISTCLEANFILES = \
|
2008-06-25 11:53:28 +04:00
|
|
|
po/stamp-it \
|
|
|
|
$(NULL)
|
2008-05-12 11:18:48 +04:00
|
|
|
|
2008-08-23 05:08:50 +04:00
|
|
|
install-data-hook:
|
|
|
|
$(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
|
|
|
|
|
2008-09-17 17:28:16 +04:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
2009-02-05 05:39:56 +03:00
|
|
|
--enable-gtk-doc \
|
2009-02-28 13:32:59 +03:00
|
|
|
--disable-schemas-install \
|
2010-06-16 19:47:09 +04:00
|
|
|
--disable-introspection \
|
2008-09-17 17:28:16 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2009-06-15 02:44:14 +04:00
|
|
|
dist-hook:
|
|
|
|
if test -d .git ; then \
|
|
|
|
git log --name-status --date=iso > $(distdir)/ChangeLog ; \
|
|
|
|
fi
|
|
|
|
|
2008-07-08 13:24:31 +04:00
|
|
|
rpm: dist @PACKAGE_NAME@.spec
|
|
|
|
rpmbuild -bb \
|
2008-06-24 21:12:28 +04:00
|
|
|
--define "_sourcedir `pwd`" \
|
2009-10-03 02:54:44 +04:00
|
|
|
--define "_builddir `pwd`/rpm" \
|
|
|
|
--define "_srcrpmdir `pwd`/rpm" \
|
|
|
|
--define "_rpmdir `pwd`"/rpm \
|
|
|
|
--define "_specdir `pwd`/rpm" \
|
2008-07-08 13:24:31 +04:00
|
|
|
@PACKAGE_NAME@.spec
|
|
|
|
|
|
|
|
srpm: dist @PACKAGE_NAME@.spec
|
|
|
|
rpmbuild -bs \
|
|
|
|
--define "_sourcedir `pwd`" \
|
2009-10-03 02:54:44 +04:00
|
|
|
--define "_builddir `pwd`/rpm" \
|
|
|
|
--define "_srcrpmdir `pwd`/rpm" \
|
|
|
|
--define "_rpmdir `pwd`/rpm" \
|
|
|
|
--define "_specdir `pwd`/rpm" \
|
2008-07-08 13:24:31 +04:00
|
|
|
@PACKAGE_NAME@.spec
|
|
|
|
|
2010-05-28 06:18:24 +04:00
|
|
|
.PHONY: debian/changelog
|
|
|
|
debian/changelog:
|
|
|
|
$(AM_V_GEN) \
|
|
|
|
( \
|
|
|
|
date=`date -R`; \
|
|
|
|
version=@VERSION@; \
|
|
|
|
serie=$(serie); \
|
|
|
|
if test -z "$$serie"; then \
|
2010-10-19 13:23:19 +04:00
|
|
|
serie=maverick; \
|
2010-05-28 06:18:24 +04:00
|
|
|
fi; \
|
|
|
|
if test -z "$$release"; then \
|
|
|
|
release=1; \
|
|
|
|
fi; \
|
|
|
|
s=`cat debian/changelog.in`; \
|
|
|
|
eval "echo \"$${s}\""; \
|
|
|
|
) > $@
|
|
|
|
|
|
|
|
ppa: dist debian/changelog
|
|
|
|
$(AM_V_GEN) \
|
|
|
|
( \
|
|
|
|
mkdir ppa; \
|
|
|
|
cd ppa; \
|
|
|
|
tar zxvf ../$(distdir).tar.gz ; \
|
|
|
|
cd $(distdir); \
|
|
|
|
cp -a ../../debian . ; \
|
|
|
|
cd debian; \
|
|
|
|
debuild -S -sa ; \
|
|
|
|
)
|
|
|
|
|
2010-07-23 11:25:45 +04:00
|
|
|
dpkg: dist debian/changelog
|
|
|
|
$(AM_V_GEN) \
|
|
|
|
( \
|
|
|
|
mkdir ppa; \
|
|
|
|
cd ppa; \
|
|
|
|
tar zxvf ../$(distdir).tar.gz ; \
|
|
|
|
cd $(distdir); \
|
|
|
|
cp -a ../../debian . ; \
|
|
|
|
cd debian; \
|
2010-06-16 19:47:09 +04:00
|
|
|
debuild -b -us -uc; \
|
2010-07-23 11:25:45 +04:00
|
|
|
)
|
|
|
|
|
2008-06-25 11:53:28 +04:00
|
|
|
clean-rpm:
|
|
|
|
$(RM) -r "`uname -i`"
|
2008-06-24 21:12:28 +04:00
|
|
|
|
2008-06-25 11:53:28 +04:00
|
|
|
clean-local: clean-rpm
|
2009-05-08 10:11:19 +04:00
|
|
|
|
|
|
|
git-tag:
|
2010-04-09 07:30:50 +04:00
|
|
|
git tag -s @PACKAGE_VERSION@
|
|
|
|
|
|
|
|
git-clean-tree:
|
2010-06-16 19:47:09 +04:00
|
|
|
git clean -d -f -x
|
2011-03-16 17:01:18 +03:00
|
|
|
|
|
|
|
-include $(top_srcdir)/git.mk
|