#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with bash-completion

override_dh_strip:
	# can be dropped after buster
	dh_strip --dbgsym-migration='liboggz2-dbg (<< 1.1.1-7~)'

ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
# Run our test suite until the upstream source get one
override_dh_auto_test:
	dh_auto_test
	for t in debian/tests/test-*; do \
	    BUILDDIR=`pwd` $$t; \
	done
endif
