#!/usr/bin/make -f # -*- makefile -*- #export DH_VERBOSE = 1 include /usr/share/dpkg/pkg-info.mk BUILD_DATE = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)") SPHINXOPTS := -N -D html_last_updated_fmt="$(BUILD_DATE)" export PYBUILD_NAME=django-graphene # Tests needs some more work to get them work. export PYBUILD_DISABLE=test %: dh $@ --buildsystem=pybuild override_dh_clean: rm -rf $(CURDIR)/.eggs dh_clean override_dh_sphinxdoc: ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) PYTHONPATH=. python3 -m sphinx -b html $(SPHINXOPTS) docs/ $(CURDIR)/debian/python-django-graphene-doc/usr/share/doc/python-django-graphene-doc/html rm $(CURDIR)/debian/python-django-graphene-doc/usr/share/doc/python-django-graphene-doc/html/.nojekyll dh_sphinxdoc endif