7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-07 08:30:48 +00:00

docs: keep running "make watch" on failure

This commit is contained in:
Régis Behmo 2021-11-23 17:59:14 +01:00 committed by Régis Behmo
parent 852759ae35
commit 23847f6441

View File

@ -1,11 +1,14 @@
.DEFAULT_GOAL := html
.PHONY: help
build:
sphinx-build -b html -a -E -n $(BUILD_ARGS) "." "_build/html"
html:
sphinx-build -b html -a -E -n -W "." "_build/html"
$(MAKE) build BUILD_ARGS="-W"
browse:
sensible-browser _build/html/index.html
watch: html browse
while true; do inotifywait -e modify *.rst */*.rst */*/*.rst ../*.rst conf.py; $(MAKE) html; done
watch: build browse
while true; do inotifywait -e modify *.rst */*.rst */*/*.rst ../*.rst conf.py; $(MAKE) build || true; done