| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
# export DH_VERBOSE=1 |
| 6 |
|
| 7 |
export PYBUILD_DESTDIR_python3=debian/python3-sphinxcontrib.restbuilder |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --with=python3 --buildsystem=pybuild |
| 11 |
|
| 12 |
override_dh_clean: |
| 13 |
dh_clean |
| 14 |
rm -rf .mypy_cache |
| 15 |
|
| 16 |
override_dh_auto_install: |
| 17 |
dh_auto_install |
| 18 |
# Remove the folder output/, it's not intended to get into the package. |
| 19 |
rm -rf debian/python3-sphinxcontrib.restbuilder/usr/lib/python3.*/dist-packages/output |
| 20 |
# Don't ship .doctrees directories |
| 21 |
find debian/python3-sphinxcontrib.restbuilder -type d -name .doctrees -print0 | xargs -0r rm -rfv |