summaryrefslogtreecommitdiff
path: root/bindings/pygobject/Makefile.am
blob: 53b36ef3e9bdd2c6665b9dedeb1745d410cb614f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# vim:set et sts=4 sw=4:
#
# ibus - The Input Bus
#
# Copyright (c) 2012 Daiki Ueno <ueno@unixuser.org>
# Copyright (c) 2014 Peng Huang <shawn.p.huang@gmail.com>
#
# 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.1 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 library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
# USA

NULL =

py2_compile = PYTHON=$(PYTHON2) $(SHELL) $(py_compile)
overrides2dir = $(py2overridesdir)
overrides2_DATA =				\
	gi/overrides/IBus.py			\
	$(NULL)

overridesdir = $(pyoverridesdir)
overrides_PYTHON =				\
	gi/overrides/IBus.py			\
	$(NULL)

TESTS =

if ENABLE_TESTS
TESTS += test-override-ibus.py
endif

TESTS_ENVIRONMENT = \
	PYTHONPATH=$(top_srcdir)/tests:$${PYTHONPATH:+:$$PYTHONPATH} \
	LD_LIBRARY_PATH=$(top_builddir)/src/.libs:$$LD_LIBRARY_PATH \
	GI_TYPELIB_PATH=$(top_builddir)/src:$$GI_TYPELIB_PATH \
	$(NULL)

LOG_COMPILER = $(PYTHON) -B

EXTRA_DIST =					\
	gi/__init__.py				\
	gi/overrides/__init__.py		\
	test-override-ibus.py                   \
	$(NULL)

install-data-hook:
	@for data in $(overrides2_DATA); do \
	    file=`echo $$data | sed -e 's|^.*/||'`; \
	    dlist="$$dlist $$file"; \
	done; \
	$(py2_compile) --destdir "$(DESTDIR)" \
	               --basedir "$(overrides2dir)" \
	               $$dlist
	$(NULL)

-include $(top_srcdir)/git.mk