"docs/doc_cookbook.md" did not exist on "eda3da5d8f30ebb8727796109323b57301ffefea"
Newer
Older
# SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
#
# SPDX-License-Identifier: GPL-3.0-or-later
Peter Lünenschloß
committed
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile clean
test:
for k in $(MDLIST); do echo sphinxdoc/"$$k"; done
# clean sphinx generated stuff
clean:
rm -rf _build _static
mkdir _static
rm -f *.automodsumm
rm -f *.automodapi
rm -f moduleAPIs/*.automodsumm
rm -f moduleAPIs/*.automodapi
rm -f */*.automodsumm
rm -f -r coredoc
Peter Lünenschloß
committed
# make doctest, make documentation, make clean
Peter Lünenschloß
committed
doc:
# generate environment table from dictionary
python scripts/make_env_tab.py
@$(SPHINXBUILD) -M doctest "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Peter Lünenschloß
committed
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
rm -f *.automodsumm
rm -f *.automodapi
rm -f moduleAPIs/*.automodsumm
rm -f moduleAPIs/*.automodapi
rm -f */*.automodsumm
# make documentation
doconly:
# generate environment table from dictionary
python scripts/make_env_tab.py
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# make test, clean up
testonly:
# generate parent fake module for the functions to be documented
python scripts/make_env_tab.py
@$(SPHINXBUILD) -M doctest "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
rm -f *.automodsumm
rm -f *.automodapi
rm -f moduleAPIs/*.automodsumm
rm -f moduleAPIs/*.automodapi
rm -f */*.automodsumm
rm -f -r coredoc
Peter Lünenschloß
committed
# 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)