File: rules

package info (click to toggle)
libunity 7.1.4%2B19.04.20190319-5
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 1,636 kB
  • sloc: makefile: 704; python: 399; ansic: 141; sh: 9; xml: 7
file content (38 lines) | stat: -rwxr-xr-x 1,100 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

%:
	dh $@ --with python3,autoreconf

override_dh_autoreconf:
	NOCONFIGURE=1 dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --enable-headless-tests

override_dh_install:
	# install the python3 gir override file as well
	PYTHON=python3 ./configure --prefix=/usr
	cd bindings/python/ && DESTDIR=../../debian/tmp make install && cd ../..
	dh_install -X.a -X.la -X.pyc -X.pyo
	# rename the scope definition file (only if present, installed on arch: all)
	mv debian/libunity-scopes-json-def-phone/usr/share/unity/client-scopes-phone.json debian/libunity-scopes-json-def-phone/usr/share/unity/client-scopes.json || true

override_dh_missing:
	dh_missing --fail-missing -X.a -X.la -X.pyc -X.pyo

override_dh_python3:
	dh_python3 debian/gir1.2-unity-7.0/usr/lib/python3

override_dh_gencontrol:
	dh_girepository
	dh_gencontrol

override_dh_makeshlibs:
	dh_makeshlibs -plibunity-protocol-private0 -V
	dh_makeshlibs --remaining-packages