#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. #export DH_VERBOSE = 1 export PYBUILD_NAME=gsd %: dh $@ --with python3,sphinxdoc --buildsystem=pybuild override_dh_clean: dh_clean rm -f gsd/fl.c || /bin/true override_dh_auto_build-indep: export http_proxy=127.0.0.1:9 override_dh_auto_build-indep: export https_proxy=127.0.0.1:9 override_dh_auto_build-indep: dh_auto_build PYTHONPATH=$(shell pybuild --pyver `py3versions -dv` --print {build_dir}) make html -C doc/ BUILDDIR=$(CURDIR)/build/html # HTML generator override_dh_sphinxdoc-indep: dh_sphinxdoc -i grep "https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js" debian/python-gsd-doc/usr/share/doc/python-gsd-doc/* -r --files-with-matches | xargs sed "s|src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js|src=\"file://usr/share/javascript/mathjax/unpacked/latest.js|g" -i