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

export PYBUILD_NAME=configobj

%:
	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	make -C docs clean

override_dh_auto_build:
	dh_auto_build
	make -C docs html

override_dh_auto_test:
	dh_auto_test -- --test-pytest --test-args "$(CURDIR)/tests"

override_dh_compress:
	dh_compress -X.js

override_dh_installdocs:
	dh_installdocs -p python-configobj-doc --doc-main-package=python-configobj-doc
	dh_installdocs --remaining-packages
