2018-12-26 15:00:47 +00:00
|
|
|
.DEFAULT_GOAL := html
|
2018-12-03 18:59:09 +00:00
|
|
|
|
|
|
|
# You can set these variables from the command line.
|
|
|
|
SPHINXOPTS =
|
|
|
|
SPHINXBUILD = sphinx-build
|
|
|
|
SOURCEDIR = .
|
|
|
|
BUILDDIR = _build
|
|
|
|
|
|
|
|
# Put it first so that "make" without argument is like "make help".
|
|
|
|
help:
|
|
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
|
2018-12-26 15:00:47 +00:00
|
|
|
browse:
|
|
|
|
sensible-browser _build/html/index.html
|
|
|
|
|
2019-01-22 20:25:04 +00:00
|
|
|
watch: html
|
2018-12-26 15:00:47 +00:00
|
|
|
while true; do inotifywait -e modify *.rst; $(MAKE) html; done
|
|
|
|
|
2018-12-03 18:59:09 +00:00
|
|
|
.PHONY: help Makefile
|
|
|
|
|
|
|
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
|
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
|
|
%: Makefile
|
2018-12-26 15:00:47 +00:00
|
|
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|