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