| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DH_VERBOSE = 1 |
| 4 |
|
| 5 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 6 |
include /usr/share/dpkg/default.mk |
| 7 |
|
| 8 |
export PYBUILD_NAME = nextcloud-api |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --with=python3,sphinxdoc --buildsystem=pybuild |
| 12 |
|
| 13 |
execute_after_dh_auto_install: |
| 14 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 15 |
PYTHONPATH=$(shell pybuild --print {build_dir} --interpreter python3) \ |
| 16 |
HTTP_PROXY='http://127.0.0.1:9/' HTTPS_PROXY='https://127.0.0.1:9/' \ |
| 17 |
python3 -m sphinx -b html docs $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html |
| 18 |
rm -rf $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html/.doctrees |
| 19 |
endif |