Blame Makefile.am

Packit 3ff832
# vim:set noet ts=4:
Packit 3ff832
#
Packit 3ff832
# ibus - The Input Bus
Packit 3ff832
#
Packit 3ff832
# Copyright (c) 2007-2016 Peng Huang <shawn.p.huang@gmail.com>
Packit 3ff832
# Copyright (c) 2015-2017 Takao Fujiwara <takao.fujiwara1@gmail.com>
Packit 3ff832
# Copyright (c) 2007-2017 Red Hat, Inc.
Packit 3ff832
#
Packit 3ff832
# This library is free software; you can redistribute it and/or
Packit 3ff832
# modify it under the terms of the GNU Lesser General Public
Packit 3ff832
# License as published by the Free Software Foundation; either
Packit 3ff832
# version 2.1 of the License, or (at your option) any later version.
Packit 3ff832
#
Packit 3ff832
# This library is distributed in the hope that it will be useful,
Packit 3ff832
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 3ff832
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 3ff832
# Lesser General Public License for more details.
Packit 3ff832
#
Packit 3ff832
# You should have received a copy of the GNU Lesser General Public
Packit 3ff832
# License along with this library; if not, write to the Free Software
Packit 3ff832
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
Packit 3ff832
# USA
Packit 3ff832
Packit 3ff832
NULL =
Packit 3ff832
Packit 3ff832
if ENABLE_UI
Packit 3ff832
UI_DIR = ui
Packit 3ff832
endif
Packit 3ff832
Packit 3ff832
if ENABLE_ENGINE
Packit 3ff832
ENGINE_DIR = engine
Packit 3ff832
endif
Packit 3ff832
Packit 3ff832
if ENABLE_SETUP
Packit 3ff832
SETUP_DIR = setup
Packit 3ff832
endif
Packit 3ff832
Packit 3ff832
if ENABLE_PYTHON_LIBRARY
Packit 3ff832
PYTHON_LIB_DIRS = ibus
Packit 3ff832
endif
Packit 3ff832
Packit 3ff832
if ENABLE_DAEMON
Packit 3ff832
DAEMON_DIR = \
Packit 3ff832
	bus \
Packit 3ff832
	$(NULL)
Packit 3ff832
endif
Packit 3ff832
Packit 3ff832
SUBDIRS = \
Packit 3ff832
	src \
Packit 3ff832
	bindings \
Packit 3ff832
	util \
Packit 3ff832
	conf \
Packit 3ff832
	client \
Packit 3ff832
	portal \
Packit 3ff832
	data \
Packit 3ff832
	m4 \
Packit 3ff832
	po \
Packit 3ff832
	docs \
Packit 3ff832
	$(ENGINE_DIR) \
Packit 3ff832
	$(UI_DIR) \
Packit 3ff832
	tools \
Packit 3ff832
	$(DAEMON_DIR) \
Packit 3ff832
	$(PYTHON_LIB_DIRS) \
Packit 3ff832
	$(SETUP_DIR) \
Packit 3ff832
	$(NULL)
Packit 3ff832
Packit 3ff832
ACLOCAL_AMFLAGS = -I m4
Packit 3ff832
Packit 3ff832
pkgconfigdir = $(libdir)/pkgconfig
Packit 3ff832
pkgconfig_DATA = ibus-@IBUS_API_VERSION@.pc
Packit 3ff832
Packit 3ff832
ibus_pc_in = ibus-@IBUS_API_VERSION@.pc.in
Packit 3ff832
EXTRA_DIST = \
Packit 3ff832
	COPYING.unicode \
Packit 3ff832
	autogen.sh \
Packit 3ff832
	$(ibus_pc_in) \
Packit 3ff832
	ibus.spec.in \
Packit 3ff832
	python-config.py \
Packit 3ff832
	xinput-ibus \
Packit 3ff832
	$(NULL)
Packit 3ff832
Packit 3ff832
noinst_DIST = \
Packit 3ff832
	$(NULL)
Packit 3ff832
Packit 3ff832
DISTCLEANFILES = \
Packit 3ff832
	po/stamp-it \
Packit 3ff832
	$(NULL)
Packit 3ff832
Packit 3ff832
install-data-hook:
Packit 3ff832
	$(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
Packit 3ff832
Packit 3ff832
DISTCHECK_CONFIGURE_FLAGS = \
Packit 3ff832
	--enable-gtk-doc \
Packit 3ff832
	--disable-schemas-install \
Packit 3ff832
	--enable-memconf \
Packit 3ff832
	$(NULL)
Packit 3ff832
Packit 3ff832
dist-hook:
Packit 3ff832
	if test -d .git ; then \
Packit 3ff832
		git log --name-status --date=iso > $(distdir)/ChangeLog ; \
Packit 3ff832
		IBUS_PREV_MICRO_VERSION=`expr $(IBUS_MICRO_VERSION) - 1`; \
Packit 3ff832
		IBUS_PREV_VERSION=\
Packit 3ff832
"$(IBUS_MAJOR_VERSION).$(IBUS_MINOR_VERSION).$$IBUS_PREV_MICRO_VERSION"; \
Packit 3ff832
		echo "Changes in IBus $(IBUS_VERSION)" > $(distdir)/NEWS; \
Packit 3ff832
		echo "" >> $(distdir)/NEWS; \
Packit 3ff832
		git log $$IBUS_PREV_VERSION...$(IBUS_VERSION) --reverse \
Packit 3ff832
		        --pretty=format:'%s (%an) %h' >> $(distdir)/NEWS; \
Packit 3ff832
	fi
Packit 3ff832
Packit 3ff832
distclean-local:
Packit 3ff832
	if test "x$(srcdir)" = "x."; then :; else \
Packit 3ff832
		rm -f ChangeLog; \
Packit 3ff832
		rm -f NEWS; \
Packit 3ff832
	fi
Packit 3ff832
Packit 3ff832
MAINTAINERCLEANFILES = \
Packit 3ff832
	$(srcdir)/ChangeLog \
Packit 3ff832
	$(NULL)
Packit 3ff832
Packit 3ff832
rpm: dist @PACKAGE_NAME@.spec
Packit 3ff832
	rpmbuild -bb \
Packit 3ff832
			--define "_sourcedir `pwd`" \
Packit 3ff832
			--define "_builddir `pwd`/rpm" \
Packit 3ff832
			--define "_srcrpmdir `pwd`/rpm" \
Packit 3ff832
			--define "_rpmdir `pwd`"/rpm \
Packit 3ff832
			--define "_specdir `pwd`/rpm" \
Packit 3ff832
			@PACKAGE_NAME@.spec
Packit 3ff832
Packit 3ff832
srpm: dist @PACKAGE_NAME@.spec
Packit 3ff832
	rpmbuild -bs \
Packit 3ff832
			--define "_sourcedir `pwd`" \
Packit 3ff832
			--define "_builddir `pwd`/rpm" \
Packit 3ff832
			--define "_srcrpmdir `pwd`/rpm" \
Packit 3ff832
			--define "_rpmdir `pwd`/rpm" \
Packit 3ff832
			--define "_specdir `pwd`/rpm" \
Packit 3ff832
			@PACKAGE_NAME@.spec
Packit 3ff832
Packit 3ff832
clean-rpm:
Packit 3ff832
	$(RM) -r "`uname -i`"
Packit 3ff832
Packit 3ff832
clean-local: clean-rpm
Packit 3ff832
Packit 3ff832
git-tag:
Packit 3ff832
	git tag -s @PACKAGE_VERSION@
Packit 3ff832
Packit 3ff832
git-clean-tree:
Packit 3ff832
	git clean -d -f -x
Packit 3ff832
Packit 3ff832
GITIGNOREFILES = \
Packit 3ff832
	INSTALL \
Packit 3ff832
	aclocal.m4 \
Packit 3ff832
	compile \
Packit 3ff832
	config.guess \
Packit 3ff832
	config.h.in \
Packit 3ff832
	config.sub \
Packit 3ff832
	depcomp \
Packit 3ff832
	gtk-doc.make \
Packit 3ff832
	install-sh \
Packit 3ff832
	ltmain.sh \
Packit 3ff832
	missing \
Packit 3ff832
	mkinstalldirs \
Packit 3ff832
	py-compile \
Packit 3ff832
	stamp-h* \
Packit 3ff832
	$(NULL)
Packit 3ff832
Packit 3ff832
-include $(top_srcdir)/git.mk