#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

export LC_ALL=C.UTF-8
export DH_VERBOSE=1

export PYBUILD_NAME=hypothesis
%:
	dh $@ --with python3,python2,pypy,sphinxdoc --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	sphinx-build -b html docs $(CURDIR)/debian/python-hypothesis-doc/usr/share/doc/python-hypothesis-doc/html
	dh_sphinxdoc -O--buildsystem=python_distutils
endif
