20 lines
585 B
Makefile
Raw Normal View History

2017-04-06 13:18:49 +08:00
# Minimal makefile for Sphinx documentation
2014-02-25 21:02:52 +08:00
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
2017-04-06 13:18:49 +08:00
SOURCEDIR = source
2014-02-25 21:02:52 +08:00
BUILDDIR = build
2017-04-06 13:18:49 +08:00
# Put it first so that "make" without argument is like "make help".
2014-02-25 21:02:52 +08:00
help:
2017-04-06 13:18:49 +08:00
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2014-02-25 21:02:52 +08:00
2017-04-06 13:18:49 +08:00
.PHONY: help Makefile
2014-02-25 21:02:52 +08:00
2017-04-06 13:18:49 +08:00
# 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)