servant/doc/Makefile

23 lines
890 B
Makefile
Raw Permalink Normal View History

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:
@if [ ! -d venv ]; then echo "WARNING: There is no venv directory, did you forget to 'virtualenv venv'. Check building-the-docs file."; fi
@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
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)