2018-12-26 16:00:47 +01:00
|
|
|
.DEFAULT_GOAL := html
|
2019-05-13 16:33:26 +02:00
|
|
|
.PHONY: help
|
2018-12-03 19:59:09 +01:00
|
|
|
|
2021-11-23 17:59:14 +01:00
|
|
|
build:
|
|
|
|
sphinx-build -b html -a -E -n $(BUILD_ARGS) "." "_build/html"
|
|
|
|
|
2019-05-13 16:33:26 +02:00
|
|
|
html:
|
2021-11-23 17:59:14 +01:00
|
|
|
$(MAKE) build BUILD_ARGS="-W"
|
2018-12-03 19:59:09 +01:00
|
|
|
|
2018-12-26 16:00:47 +01:00
|
|
|
browse:
|
|
|
|
sensible-browser _build/html/index.html
|
|
|
|
|
2021-11-23 17:59:14 +01:00
|
|
|
watch: build browse
|
2022-02-07 18:11:43 +01:00
|
|
|
while true; do $(MAKE) wait-for-change build || true; done
|
|
|
|
|
|
|
|
wait-for-change:
|
|
|
|
inotifywait -e modify $(shell find . -name "*.rst") ../*.rst ../tutor/hooks/*.py conf.py
|