#! /usr/bin/make -f export PYBUILD_NAME=discovery %: dh $@ --with python3 --buildsystem=pybuild execute_after_dh_auto_build: ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) PYTHONPATH=$(shell pybuild --print build_dir -i python3) \ python3 -m sphinx -b html -d build/doctrees docs build/html ln -s /usr/share/javascript/d3/d3.min.js build/html/_static/ endif