~cherojeong/ubuntu-keyboard/korean-layout

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
#!/usr/bin/make -f
# -*- makefile -*-

export DPKG_GENSYMBOLS_CHECK_LEVEL=4

%:
	dh $@ --fail-missing --with python3

override_dh_auto_configure:
	dh_auto_configure -- -recursive \
	                     MALIIT_DEFAULT_PROFILE=ubuntu \
	                     CONFIG+=debug \
	                     CONFIG+=nodoc \
	                     CONFIG+=enable-presage \
	                     CONFIG+=enable-hunspell \
	                     CONFIG+=enable-pinyin

override_dh_auto_test:
	python3 -m flake8.run .
	# Tests write $HOME/.presage/lm.db, make sure $HOME is
	# writable.
	rm -rf $(CURDIR)/debian/test-home
	mkdir -p $(CURDIR)/debian/test-home
	HOME=$(CURDIR)/debian/test-home xvfb-run -a make check

override_dh_clean:
	rm -rf $(CURDIR)/debian/test-home
	dh_clean

override_dh_install:
	# install autopilot tests
	cd tests/autopilot; \
	python3 setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
	cd $(CURDIR)
	# Don't install the other tests
	rm debian/tmp/usr/bin/ut_*
	dh_install -X'*.pyc' --fail-missing