6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-13 06:37:46 +00:00
tutor/docs/Makefile
2021-11-25 12:25:23 +01:00

15 lines
323 B
Makefile

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