From c11d329d77990f86b8c00e74f5d5b9cd9707ce14 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 3 Dec 2017 13:00:41 +0000 Subject: [PATCH] Add Makefile to generate documentation Signed-off-by: Niels Thykier --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..839f2d2 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +SPHINXPROJ = britney2 +SOURCEDIR = doc +BUILDDIR = _build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +docs: html + +.PHONY: help Makefile docs + +# 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)