#!/usr/bin/make -f
# -*- makefile -*-

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

include /usr/share/dpkg/default.mk

export DPKG_GENSYMBOLS_CHECK_LEVEL=4
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

# Ignore test failures on less relevant architectures
testskip_architectures := s390x

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_INSTALL_LIBEXECDIR=/usr/libexec/dbus-cpp

override_dh_auto_test:
ifeq (,$(filter $(DEB_HOST_ARCH),$(testskip_architectures)))
	dh_auto_test --no-parallel
else
	dh_auto_test --no-parallel || true
endif

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
