#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

# detect if build targets experimental suite (or is a draft)
DEB_SUITE_EXP = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))

export DH_OPTIONS = -O--buildsystem=pybuild -O--builddir=build

override_dh_auto_test:
	dh_auto_test $(if $(DEB_SUITE_EXP),|| true)

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.md

%:
	dh $@ $(DH_OPTIONS:-O%=%)
