| 1 |
# Makefile for Sphinx documentation |
| 2 |
|
| 3 |
# You can set these variables from the command line. |
| 4 |
SPHINXOPTS = |
| 5 |
SPHINXBUILD = sphinx-build |
| 6 |
PAPER = |
| 7 |
BUILDDIR = build |
| 8 |
|
| 9 |
# Internal variables. Nitpicky mode lives in conf.py so that every build gets |
| 10 |
# it; -W turns the warnings it produces into a build failure, like CI does. |
| 11 |
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -W . |
| 12 |
|
| 13 |
.PHONY: help clean html linkcheck |
| 14 |
|
| 15 |
help: |
| 16 |
@echo "Please use \`make <target>' where <target> is one of" |
| 17 |
@echo " html to make standalone HTML files" |
| 18 |
@echo " linkcheck to check all external links for integrity" |
| 19 |
|
| 20 |
clean: |
| 21 |
-rm -rf $(BUILDDIR)/* |
| 22 |
|
| 23 |
html: |
| 24 |
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html |
| 25 |
@echo |
| 26 |
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html." |
| 27 |
|
| 28 |
linkcheck: |
| 29 |
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck |
| 30 |
@echo |
| 31 |
@echo "Link check complete; look for any errors in the above output " \ |
| 32 |
"or in $(BUILDDIR)/linkcheck/output.txt." |