aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4ba0066..753fe28 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
-.PHONY: tags check
+.PHONY: tags check documentation sphinx-apidoc
+
+DOC_OUTPUT = doc.rendered
tags:
ctags `find mu4web -type f -name \*.py `
@@ -6,3 +8,11 @@ tags:
check:
mypy -p mu4web
flake8 mu4web
+
+sphinx-apidoc:
+ sphinx-apidoc --separate --force -o doc mu4web
+
+$(DOC_OUTPUT)/index.html: sphinx-apidoc
+ sphinx-build -b dirhtml doc $(DOC_OUTPUT)
+
+documentation: $(DOC_OUTPUT)/index.html