Debian Codegraph @

docs/Makefile

raw
1 # Minimal makefile for Sphinx documentation
2 #
3
4 # You can set these variables from the command line, and also
5 # from the environment for the first two.
6 SPHINXOPTS ?=
7 SPHINXBUILD ?= sphinx-build
8 SPHINXAUTOBUILD = sphinx-autobuild
9 SOURCEDIR = source
10 BUILDDIR = build
11
12 # Put it first so that "make" without argument is like "make help".
13 help:
14 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
15
16 .PHONY: help Makefile
17
18 # Run the development server using sphinx-autobuild
19 docs:
20 @echo
21 @echo "Starting up the docs server..."
22 @echo
23 $(SPHINXAUTOBUILD) --port 8000 --watch ${SOURCEDIR} $(SOURCEDIR) "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
24
25 # Catch-all target: route all unknown targets to Sphinx using the new
26 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
27 %: Makefile
28 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)