From c2f4a6e5e224a980b5388917da6efdfce9f19525 Mon Sep 17 00:00:00 2001 From: michielmulders Date: Thu, 10 Aug 2017 17:42:05 +0200 Subject: [PATCH] Added make hmtl and clean to Makefile --- docs/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index dee6dce..ddb4946 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -3,7 +3,7 @@ # You can set these variables from the command line. SPHINXOPTS = -SPHINXBUILD = python -msphinx +SPHINXBUILD = sphinx-build SPHINXPROJ = BigchainDBJavascriptDriver SOURCEDIR = source BUILDDIR = build @@ -14,7 +14,19 @@ help: .PHONY: help Makefile +.PHONY: clean +clean: + rm -rf $(BUILDDIR)/* + @echo + @echo "Removed $(BUILDDIR)/html." + +.PHONY: html +html: + $(SPHINXBUILD) -b html $(SOURCEDIR) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + # 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) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)