2021-06-16 23:49:41 +02:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Makefile for documentation build
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2017-11-08 02:05:56 +01:00
|
|
|
|
2021-03-25 20:45:41 +01:00
|
|
|
BUILDDIR ?= _build
|
2018-07-13 11:55:54 +02:00
|
|
|
DOC_TAG ?= development
|
2023-07-13 12:01:42 +02:00
|
|
|
SPHINXOPTS ?= -j auto -W --keep-going -T
|
|
|
|
SPHINXOPTS_EXTRA ?=
|
2021-07-26 12:31:40 +02:00
|
|
|
LATEXMKOPTS ?= -halt-on-error -no-shell-escape
|
2022-02-02 20:09:01 +01:00
|
|
|
DT_TURBO_MODE ?= 0
|
2017-11-08 02:05:56 +01:00
|
|
|
|
2021-06-16 23:49:41 +02:00
|
|
|
# ------------------------------------------------------------------------------
|
2017-11-08 02:05:56 +01:00
|
|
|
# Documentation targets
|
2021-02-08 23:11:51 +01:00
|
|
|
|
2021-06-16 23:49:41 +02:00
|
|
|
.PHONY: configure clean html html-fast latex pdf doxygen
|
2019-02-05 18:53:16 +01:00
|
|
|
|
2021-06-16 23:49:41 +02:00
|
|
|
html-fast:
|
2022-01-12 13:41:15 +01:00
|
|
|
${MAKE} html DT_TURBO_MODE=1
|
2021-01-08 23:31:05 +01:00
|
|
|
|
2022-09-23 15:51:29 +02:00
|
|
|
html latex pdf linkcheck doxygen: configure
|
2021-06-16 23:49:41 +02:00
|
|
|
cmake --build ${BUILDDIR} --target $@
|
2019-01-21 19:58:05 +01:00
|
|
|
|
2021-01-08 23:31:05 +01:00
|
|
|
configure:
|
2021-06-16 23:49:41 +02:00
|
|
|
cmake \
|
|
|
|
-GNinja \
|
|
|
|
-B${BUILDDIR} \
|
|
|
|
-S. \
|
|
|
|
-DDOC_TAG=${DOC_TAG} \
|
2021-05-12 18:23:33 +02:00
|
|
|
-DSPHINXOPTS="${SPHINXOPTS}" \
|
2023-07-13 12:01:42 +02:00
|
|
|
-DSPHINXOPTS_EXTRA="${SPHINXOPTS_EXTRA}" \
|
2021-07-26 12:31:40 +02:00
|
|
|
-DLATEXMKOPTS="${LATEXMKOPTS}" \
|
2022-02-02 20:09:01 +01:00
|
|
|
-DDT_TURBO_MODE=${DT_TURBO_MODE}
|
2020-04-10 14:07:55 +02:00
|
|
|
|
2021-02-08 23:11:51 +01:00
|
|
|
clean:
|
2021-06-16 23:49:41 +02:00
|
|
|
cmake --build ${BUILDDIR} --target clean
|