#!/usr/bin/make -f

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

override_dh_install:
	dh_install -O--buildsystem=pybuild
override_dh_installman:
	a2x --no-xmllint --doctype manpage --format manpage debian/obfsproxy.1.txt
	dh_installman -O--buildsystem=pybuild

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	PYTHONPATH=. trial obfsproxy
endif
