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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME=pymodbus
export http_proxy = http://127.0.0.1:9
export https_proxy = https://127.0.0.1:9

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

override_dh_auto_build:
	dh_auto_build
	( cd doc; \
	  PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -M html . _build )

override_dh_install:
	dh_install
	rm -f $(CURDIR)/debian/python*-pymodbus/usr/lib/python*/dist-packages/.coverage
