| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=django-cachalot |
| 7 |
# We cannot run the test suite yet; upstream issue pending |
| 8 |
export PYBUILD_DISABLE=test |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --buildsystem=pybuild |
| 12 |
|
| 13 |
override_dh_clean: |
| 14 |
dh_clean |
| 15 |
rm -rf .mypy_cache |
| 16 |
|
| 17 |
override_dh_sphinxdoc: |
| 18 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 19 |
PYTHONPATH=$(CURDIR)/cachalot \ |
| 20 |
python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html |
| 21 |
cp $(CURDIR)/django-cachalot.jpg $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html/_images |
| 22 |
dh_sphinxdoc |
| 23 |
endif |