| 1 | #!/usr/bin/make -f |
| 2 | export PYBUILD_NAME=django-haystack |
| 3 | # Require a live solr server. If done, should be in autopkgtest |
| 4 | export PYBUILD_DISABLE=test |
| 5 | |
| 6 | %: |
| 7 | dh $@ --with sphinxdoc --buildsystem=pybuild |
| 8 | |
| 9 | override_dh_sphinxdoc: |
| 10 | ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 11 | PYTHONPATH=. python3 -m sphinx -b html -N docs/ $(CURDIR)/debian/python-django-haystack-doc/usr/share/doc/python-django-haystack-doc/html |
| 12 | dh_sphinxdoc |
| 13 | endif |