2017-11-08 09:05:56 +08:00
|
|
|
#
|
|
|
|
# Top level makefile for things not covered by cmake
|
|
|
|
#
|
|
|
|
|
2018-09-05 04:03:50 +08:00
|
|
|
ifndef ZEPHYR_BASE
|
|
|
|
$(error The ZEPHYR_BASE environment variable must be set)
|
|
|
|
endif
|
|
|
|
|
2018-07-10 19:31:18 +08:00
|
|
|
BUILDDIR ?= doc/_build
|
2018-07-13 17:55:54 +08:00
|
|
|
DOC_TAG ?= development
|
|
|
|
SPHINXOPTS ?= -q
|
2017-11-08 09:05:56 +08:00
|
|
|
|
|
|
|
# Documentation targets
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
htmldocs:
|
2018-07-19 19:47:45 +08:00
|
|
|
mkdir -p ${BUILDDIR} && cmake -GNinja -DDOC_TAG=${DOC_TAG} -DSPHINXOPTS=${SPHINXOPTS} -B${BUILDDIR} -Hdoc/ && ninja -C ${BUILDDIR} htmldocs
|
2018-09-11 08:27:13 +08:00
|
|
|
|
|
|
|
pdfdocs:
|
|
|
|
mkdir -p ${BUILDDIR} && cmake -GNinja -DDOC_TAG=${DOC_TAG} -DSPHINXOPTS=${SPHINXOPTS} -B${BUILDDIR} -Hdoc/ && ninja -C ${BUILDDIR} pdfdocs
|