| 1 | # Minimal makefile for Sphinx documentation |
| 2 | # |
| 3 | |
| 4 | # You can set these variables from the command line. |
| 5 | SPHINX_BUILD ?= sphinx-build |
| 6 | SPHINX_BUILD_OPTS ?= -W -j auto --keep-going |
| 7 | SOURCE_DIR = . |
| 8 | BUILD_DIR = _build |
| 9 | |
| 10 | # Put it first so that "make" without argument is like "make help". |
| 11 | help: |
| 12 | @$(SPHINX_BUILD) -M help "$(SOURCE_DIR)" "$(BUILD_DIR)" $(SPHINX_BUILD_OPTS) |
| 13 | |
| 14 | .PHONY: help Makefile |
| 15 | |
| 16 | # Catch-all target: route all unknown targets to Sphinx using the new "make mode" option. |
| 17 | %: Makefile |
| 18 | @$(SPHINX_BUILD) -M $@ "$(SOURCE_DIR)" "$(BUILD_DIR)" $(SPHINX_BUILD_OPTS) |