#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 ifeq ($(filter sysprof,$(shell dh_listpackages)),) gtk=-Dgtk=false endif ifeq ($(filter libsysprof-6-dev,$(shell dh_listpackages)),) libunwind=-Dexamples=false -Dlibsysprof=false -Dsysprofd=none -Dtests=false -Dtools=false else libunwind=-Dsysprofd=bundled endif %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -Dsystemdunitdir=/usr/lib/systemd/system \ $(gtk) \ $(libunwind) override_dh_makeshlibs: # The libraries in libsysprof-6-modules are to be loaded with # LD_PRELOAD, not linked dh_makeshlibs -Nlibsysprof-6-modules override_dh_auto_test: dh_auto_test -- --timeout-multiplier 2 # mesa-utils is in Ubuntu "universe" and this feature isn't mandatory override_dh_gencontrol: ifeq ($(shell dpkg-vendor --query vendor),Ubuntu) dh_gencontrol -- \ -Vsysprof:Suggests='mesa-utils' else dh_gencontrol -- \ -Vsysprof:Recommends='mesa-utils' endif # We only use dh_gnome to automatically run dh_translations in Ubuntu override_dh_gnome: