| 1 |
|
| 2 |
|
| 3 |
export PYBUILD_NAME=itango |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
export PYBUILD_DISABLE=test |
| 9 |
|
| 10 |
|
| 11 |
WITH_SPHINXDOC = $(shell if [ -x /usr/bin/dh_sphinxdoc ]; then echo "--with sphinxdoc"; fi) |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ --with python3 $(WITH_SPHINXDOC) --buildsystem=pybuild |
| 15 |
|
| 16 |
override_dh_auto_build: |
| 17 |
dh_auto_build |
| 18 |
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman doc/ build/man |
| 19 |
cp build/man/itango.1 build/man/itango3.1 |
| 20 |
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/ build/sphinx/html |
| 21 |
|
| 22 |
override_dh_auto_clean: |
| 23 |
dh_auto_clean |
| 24 |
rm -rf build |
| 25 |
rm -rf *.egg-info |