| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # Uncomment this to turn on verbose mode. |
| 4 | #export DH_VERBOSE = 1 |
| 5 | |
| 6 | export PYBUILD_NAME = leather |
| 7 | |
| 8 | %: |
| 9 | dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 10 | |
| 11 | override_dh_auto_build: |
| 12 | export http_proxy=127.0.0.1:9 |
| 13 | export https_proxy=127.0.0.1:9 |
| 14 | dh_auto_build |
| 15 | ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES))) |
| 16 | PYTHONPATH=. python3 -m sphinx -N -b html docs build/html |
| 17 | endif |
| 18 | |
| 19 | execute_after_dh_link: |
| 20 | # Deal with some duplicate files in examples and docs |
| 21 | jdupes -rl debian/python-leather-doc || true |