#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_TEST_ARGS=-v --exclude=test_nested_execution_with_explicit_ports
export PYBUILD_NAME=fabric

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

override_dh_auto_install:
	dh_auto_install
	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N sites/docs/ sites/docs/build/html/

override_dh_auto_clean:
	dh_auto_clean
	rm -rf sites/docs/build/
