| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
export PYBUILD_NAME=django-model-utils |
| 5 |
# The test do require a PostgreSQL instance, this is something we can't |
| 6 |
# provide at build time. |
| 7 |
export PYBUILD_DISABLE=test |
| 8 |
|
| 9 |
SPHINXOPTS := -E -N |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=pybuild |
| 13 |
|
| 14 |
override_dh_sphinxdoc: |
| 15 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 16 |
PYTHONPATH=. python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python-django-model-utils-doc/usr/share/doc/python-django-model-utils-doc/html |
| 17 |
dh_sphinxdoc |
| 18 |
endif |
| 19 |
|
| 20 |
.PHONY: override_dh_installchangelogs |
| 21 |
override_dh_installchangelogs: |
| 22 |
dh_installchangelogs CHANGES.rst |