| 1 | #! /usr/bin/make -f |
| 2 | |
| 3 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 | export PYBUILD_NAME=dm-tree |
| 5 | |
| 6 | %: |
| 7 | dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 8 | |
| 9 | execute_before_dh_sphinxdoc: |
| 10 | ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 11 | cd $$(pybuild --print build_dir --name dm-tree |head -n1 |awk -F ': ' '{print $$2}'); python3 -m sphinx -b html -N $(CURDIR)/docs $(CURDIR)/debian/python-dm-tree-doc/usr/share/doc/python-dm-tree-doc/html |
| 12 | endif |