#!/usr/bin/make -f

export PYBUILD_NAME=jeepney

%:
	dh $@ --buildsystem=pybuild

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
	$(MAKE) -Cdocs html
endif

override_dh_auto_test:
	dbus-run-session -- dh_auto_test

override_dh_installdocs:
	dh_installdocs -pjeepney-doc --doc-main-package=python3-jeepney
	dh_installdocs --remaining-packages

override_dh_installexamples:
	dh_installexamples -pjeepney-doc --doc-main-package=python3-jeepney
	dh_installexamples --remaining-packages
