| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | #export DH_VERBOSE=1 |
| 5 | |
| 6 | export PYBUILD_NAME=blinker |
| 7 | |
| 8 | SPHINXOPTS := -E -N |
| 9 | |
| 10 | %: |
| 11 | dh $@ --buildsystem=pybuild |
| 12 | |
| 13 | override_dh_sphinxdoc: |
| 14 | ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 15 | PYTHONPATH=`dirname $$(find .pybuild/ -type d -name "*blinker*dist-info" | head -n1)` \ |
| 16 | python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python-blinker-doc/usr/share/doc/python-blinker-doc/html |
| 17 | dh_sphinxdoc |
| 18 | endif |