-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
28 lines (23 loc) · 900 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Makefile for Sphinx documentation
# You can set these variables from the command line.
# The first two can also be set from the environment.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
# User-friendly check for sphinx-build.
ifneq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 0)
$(info The $(SPHINXBUILD) command was not found.)
$(info Make sure Sphinx is installed see:)
$(info https://www.sphinx-doc.org/en/master/usage/installation.html)
$(error )
endif
# Placed first, so that "make" without an argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target:
# Route all unknown targets to Sphinx using "make mode" option.
# $(O) is shorthand for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)