Add a comment to Makefile template for make-mode, update doc/Makefile

This commit is contained in:
jfbu 2016-10-23 10:45:23 +02:00
parent 54dbd3882d
commit 720e155b83
2 changed files with 5 additions and 7 deletions

View File

@ -1,4 +1,3 @@
.PHONY: man
# Makefile for Sphinx documentation
#
@ -9,14 +8,13 @@ SPHINXPROJ = sphinx
SOURCEDIR = .
BUILDDIR = _build
# Has to be explicit, otherwise we don't get "make" without targets right.
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
man:
@$(SPHINXBUILD) -M man "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.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
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

View File

@ -8,8 +8,9 @@ SPHINXPROJ = {{ project_fn }}
SOURCEDIR = {{ rsrcdir }}
BUILDDIR = {{ rbuilddir }}
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
@ -17,4 +18,3 @@ help:
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)