2018-07-06 10:45:41 +02:00
|
|
|
# Minimal makefile for Sphinx documentation
|
2016-01-25 14:11:40 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# You can set these variables from the command line.
|
|
|
|
SPHINXOPTS =
|
|
|
|
SPHINXBUILD = sphinx-build
|
2018-07-06 10:45:41 +02:00
|
|
|
SPHINXPROJ = Servant
|
|
|
|
SOURCEDIR = .
|
2016-01-25 14:11:40 +01:00
|
|
|
BUILDDIR = _build
|
|
|
|
|
2018-07-06 10:45:41 +02:00
|
|
|
# Put it first so that "make" without argument is like "make help".
|
2016-01-25 14:11:40 +01:00
|
|
|
help:
|
2022-02-21 17:20:02 +01:00
|
|
|
@if [ ! -d venv ]; then echo "WARNING: There is no venv directory, did you forget to 'virtualenv venv'. Check README.md."; fi
|
2019-02-02 15:05:03 +01:00
|
|
|
@if [ ! "z$$(which $(SPHINXBUILD))" = "z$$(pwd)/venv/bin/sphinx-build" ]; then echo "WARNING: Did you forgot to 'source venv/bin/activate'"; fi
|
2018-07-06 10:45:41 +02:00
|
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
2016-01-25 14:11:40 +01:00
|
|
|
|
2018-07-06 10:45:41 +02:00
|
|
|
.PHONY: help Makefile
|
2016-01-25 14:11:40 +01:00
|
|
|
|
2018-07-06 10:45:41 +02: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
|
2019-02-02 15:05:03 +01:00
|
|
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|