#!/usr/bin/make -f # -*- makefile -*- export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 %: dh $@ 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 dh_auto_configure 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 -X.a -X.la -X.pyc -X.pyo override_dh_python3: dh_python3 debian/gir1.2-unity-7.0/usr/lib/python3