Makefile
20 lines
| 634 B
| text/x-makefile
|
MakefileLexer
/ docs / Makefile
r5343 | # Minimal makefile for Sphinx documentation | |||
r1 | # | |||
r5343 | # You can set these variables from the command line, and also | |||
# from the environment for the first two. | ||||
r5193 | SPHINXOPTS ?= | |||
SPHINXBUILD ?= sphinx-build | ||||
r5343 | SOURCEDIR = . | |||
r1 | BUILDDIR = _build | |||
r5343 | # Put it first so that "make" without argument is like "make help". | |||
r1 | help: | |||
r5343 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | |||
r1 | ||||
r5343 | .PHONY: help Makefile | |||
r1 | ||||
r5343 | # Catch-all target: route all unknown targets to Sphinx using the new | |||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||||
%: Makefile | ||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||||