18 lines
494 B
Makefile
18 lines
494 B
Makefile
SPHINXOPTS ?=
|
|
SPHINXBUILD ?= pipenv run sphinx-build
|
|
SOURCEDIR = source
|
|
BUILDDIR = build
|
|
|
|
help:
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
serve:
|
|
python -m http.server -d $(BUILDDIR)/html -b 127.0.0.1
|
|
|
|
.PHONY: help Makefile
|
|
|
|
# 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)
|