#!/usr/bin/make -f

DH_OPTIONS = -O--buildsystem=pybuild

STEM = aioresponses
DOCDIR = debian/python3-$(STEM)-doc/usr/share/doc/python3-$(STEM)-doc/html

override_dh_sphinxdoc:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	sphinx-build -b html docs $(DOCDIR)
	dh_sphinxdoc
endif

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