| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=loky |
| 7 |
export PYBUILD_AFTER_INSTALL= rm -fr {destdir}/usr/lib/python3*/dist-packages/$(PYBUILD_NAME)-*/top_level.txt |
| 8 |
|
| 9 |
#SPHINXOPTS := -E -N |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=pybuild |
| 13 |
|
| 14 |
execute_before_dh_sphinxdoc: |
| 15 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 16 |
cd docs; PYTHONPATH=$(CURDIR) sphinx-build -j1 -N -b html . $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html |
| 17 |
# find & delet build path fragments |
| 18 |
find $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html -type f -exec sed -i 's,$(CURDIR),,g' {} + |
| 19 |
endif |