#!/usr/bin/make -f

export PYBUILD_NAME=flametree
export PYBUILD_TEST_PYTEST=1
export MPLBACKEND=Agg

%:
	dh $@ --buildsystem=pybuild

ifneq (,$(filter python-flametree-doc,$(shell dh_listpackages)))
execute_after_dh_auto_build:
	mkdir -p build/sphinx-static
	http_proxy=http://127.0.0.1:9/ https_proxy=http://127.0.0.1:9/ \
	PYTHONPATH=. python3 -m sphinx -N -W -b html \
	-D html_static_path=$(CURDIR)/build/sphinx-static docs build/html
endif
