#!/usr/bin/make -f
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=ripe-atlas-sagan

include /usr/share/dpkg/default.mk

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

.PHONY: override_dh_clean
override_dh_clean:
	dh_clean
	rm -rf ripe.atlas.sagan.egg-info
	rm -rf docs/_build

.PHONY: override_dh_install
override_dh_install:
	dh_install
	rm -rf debian/python3-ripe-atlas-sagan/usr/bin

.PHONY: override_dh_auto_build
override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C docs html
