twc-doc/Makefile

18 lines
494 B
Makefile
Raw Normal View History

2023-04-13 23:56:23 +03:00
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)