| 1 | #! /usr/bin/make -f |
| 2 | |
| 3 | export PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.=behave |
| 4 | export PYBUILD_TEST_ARGSscip-makefile . . . PYBUILD_TEST_ARGS.=test |
| 5 | |
| 6 | %scip-makefile . . . `%`/: |
| 7 | dh $@scip-makefile . . . `@`. --with sphinxdoc --buildsystem=pybuild |
| 8 | |
| 9 | override_dh_auto_build-indepscip-makefile . . . override_dh_auto_build-indep/: |
| 10 | dh_auto_build -i |
| 11 | ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 12 | cd docs && \ |
| 13 | PYTHONPATH=$(CURDIRscip-makefile . . . CURDIR.) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \ |
| 14 | python3 -m sphinx -N -E -T -b html . $(CURDIRscip-makefile . . . CURDIR.)/.pybuild/docs/html/ |
| 15 | rm -rf $(CURDIRscip-makefile . . . CURDIR.)/.pybuild/docs/html/.doctrees |
| 16 | endif |