| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
# Uncomment this to turn on verbose mode. |
| 6 |
#export DH_VERBOSE=1 |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 10 |
|
| 11 |
override_dh_sphinxdoc: |
| 12 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 13 |
PYTHONPATH=. python3 -m sphinx -b html -d docs/source/.build/.doctrees -N docs/source $(CURDIR)/debian/python-rcon-doc/usr/share/doc/python-rcon-doc/html |
| 14 |
dh_sphinxdoc |
| 15 |
endif |
| 16 |
|
| 17 |
execute_before_dh_installman: |
| 18 |
set -e ; \ |
| 19 |
for doc in rcongui rconclt rconshell; do \ |
| 20 |
PYTHONPATH=$(CURDIR) help2man --version-string="$(DEB_VERSION_UPSTREAM)" -n "Client implementation for RCON protocol" $(CURDIR)/debian/rcon/usr/bin/$$doc >$$doc.1; \ |
| 21 |
done |
| 22 |
|
| 23 |
execute_after_dh_clean: |
| 24 |
rm -rf docs/source/.build .mypy_cache |