Skip to content

Commit 9971cc2

Browse files
Add Makefile for Sphinx documentation build process
1 parent 8accf09 commit 9971cc2

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

docs/Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
SPHINXOPTS ?=
2+
SPHINXBUILD ?= sphinx-build
3+
SOURCEDIR = source
4+
BUILDDIR = build
5+
6+
help:
7+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
8+
9+
apidoc:
10+
@sphinx-apidoc --force --separate --module-first --no-toc -o source/api ../kha256/
11+
12+
html: apidoc
13+
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
clean:
16+
rm -rf $(BUILDDIR)/* source/api/*
17+
18+
.PHONY: help apidoc html clean
19+
20+
%: Makefile
21+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

0 commit comments

Comments
 (0)