| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | |
| 4 | include /usr/share/dpkg/pkg-info.mk |
| 5 | export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM) |
| 6 | |
| 7 | %: |
| 8 | dh $@ --buildsystem=pybuild |
| 9 | |
| 10 | execute_after_dh_auto_build: |
| 11 | # A rather dirty way of preventing information being built into man-page, |
| 12 | # in case we want to build the complete documentation in a separate package. |
| 13 | rm -f docs/installation.rst |
| 14 | rm -f docs/quickstart.rst |
| 15 | PYTHONPATH=. python3 -m sphinx -N -bman docs/ build/man # Manpage generator |
| 16 | |
| 17 | override_dh_installchangelogs: |
| 18 | dh_installchangelogs NEWS.md |