22 lines
627 B
Makefile
22 lines
627 B
Makefile
SPHINXOPTS ?=
|
|
VENV_SPHINXBUILD = ../.venv/bin/sphinx-build
|
|
SPHINXBUILD ?= $(if $(wildcard $(VENV_SPHINXBUILD)),$(VENV_SPHINXBUILD),sphinx-build)
|
|
SOURCEDIR = .
|
|
BUILDDIR = _build
|
|
|
|
.PHONY: help clean html linkcheck
|
|
|
|
help:
|
|
@echo "Please use 'make <target>' where <target> is one of"
|
|
@echo " html to make standalone HTML files"
|
|
@echo " linkcheck to check all external links for integrity"
|
|
|
|
clean:
|
|
rm -rf "$(BUILDDIR)"
|
|
|
|
html:
|
|
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS)
|
|
|
|
linkcheck:
|
|
@$(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)/linkcheck" $(SPHINXOPTS)
|