#!/usr/bin/make -f #export DH_VERBOSE=1 export PYBUILD_NAME=gwcs export http_proxy=127.0.0.1:9 BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)") SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)" -D html_show_copyright=0 %: dh $@ --with python3,sphinxdoc --buildsystem=pybuild override_dh_auto_build: dh_auto_build PYTHONPATH=.:docs/sphinxext sphinx-build $(SPHINXOPTS) -N -bhtml docs/ build/html # HTML generator override_dh_auto_clean: dh_auto_clean rm -f gwcs/version.py rm -rf .pybuild rm -rf api override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) python3 setup.py test endif