| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | #export DH_VERBOSE=1 |
| 4 | export PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.=astroplan |
| 5 | export PYBUILD_TEST_ARGSscip-makefile . . . PYBUILD_TEST_ARGS.=-k 'not test_timezone' |
| 6 | export http_proxyscip-makefile . . . http_proxy.=127.0.0.1:9 |
| 7 | |
| 8 | BUILD_DATEscip-makefile . . . BUILD_DATE. = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)") |
| 9 | SPHINXOPTSscip-makefile . . . SPHINXOPTS. := -D html_last_updated_fmt="$(BUILD_DATEscip-makefile . . . BUILD_DATE.)" -D html_show_copyright=0 |
| 10 | |
| 11 | %scip-makefile . . . `%`/: |
| 12 | dh $@scip-makefile . . . `@`. --with sphinxdoc --buildsystem=pybuild |
| 13 | |
| 14 | execute_after_dh_auto_buildscip-makefile . . . execute_after_dh_auto_build/: |
| 15 | PYTHONPATH=. sphinx-build $(SPHINXOPTSscip-makefile . . . SPHINXOPTS.) -N -bhtml docs/ build/html |
| 16 | |
| 17 | execute_after_dh_auto_cleanscip-makefile . . . execute_after_dh_auto_clean/: |
| 18 | rm -f astroplan/version.py |
| 19 | rm -rf .cache |
| 20 | rm -rf api |
| 21 | rm -rf build |
| 22 | rm -rf .pybuild |
| 23 | rm -rf astroplan.egg-info |
| 24 | |
| 25 | execute_before_dh_auto_installscip-makefile . . . execute_before_dh_auto_install/: |
| 26 | rm -rf build/html/plot_directive |
| 27 | rm -rf build/html/_images |
| 28 | sed -i "s#../_images/##g" build/html/tutorials/*.html |