| 1 | #!/usr/bin/make -f |
| 2 | #export DH_VERBOSE = 1 |
| 3 | |
| 4 | export PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.=bidict |
| 5 | export PYBUILD_AFTER_TESTscip-makefile . . . PYBUILD_AFTER_TEST.=rm -rf .pytest_cache |
| 6 | |
| 7 | %scip-makefile . . . `%`/: |
| 8 | dh $@scip-makefile . . . `@`. --buildsystem=pybuild |
| 9 | |
| 10 | override_dh_sphinxdocscip-makefile . . . override_dh_sphinxdoc/: |
| 11 | ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) |
| 12 | PYTHONPATH=$(wildcard $(CURDIRscip-makefile . . . CURDIR.)/.pybuild/cpython3_*/build) \ |
| 13 | python3 -m sphinx -b html docs \ |
| 14 | $(CURDIRscip-makefile . . . CURDIR.)/debian/python-bidict-doc/usr/share/doc/python-bidict-doc/html |
| 15 | dh_sphinxdoc |
| 16 | rm -f $(CURDIRscip-makefile . . . CURDIR.)/debian/python-bidict-doc/usr/share/doc/python-bidict-doc/html/_static/custom.js |
| 17 | endif |
| 18 | |
| 19 | execute_after_dh_auto_testscip-makefile . . . execute_after_dh_auto_test/: |
| 20 | find .pybuild -type d -name .pytest_cache -print0 | xargs -0r rm -rfv |