Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8 DPKG_EXPORT_BUILDFLAGS = 1
9 include /usr/share/dpkg/buildflags.mk
10
11 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
12
13 %:
14 dh $@ --with python3,autoreconf
15
16 override_dh_autoreconf:
17 NOCONFIGURE=1 dh_autoreconf ./autogen.sh
18
19 override_dh_auto_configure:
20 dh_auto_configure -- --enable-gtk-doc
21
22 override_dh_auto_test:
23 ifneq ($(DEB_HOST_ARCH),riscv64)
24 # on riscv the test leaves a dbus-test-runner which breaks build
25 # and waits until a a 24h timeout on the builder (LP: 1891158)
26 dh_auto_test
27 endif
28
29 override_dh_install:
30 PYTHON=python3 ./configure --prefix=/usr
31 cd bindings/python/ && DESTDIR=../../debian/tmp make install && cd ../..
32 dh_install -X.la -X.a -X.pyc -X.pyo
33
34 override_dh_python3:
35 dh_python3 debian/gir1.2-dee-1.0/usr/lib/python3
36
37 override_dh_gencontrol:
38 dh_girepository
39 dh_gencontrol