doc: Change Makefile and doc for building docs to CMake
Now that CMake is supported for building the docs, adapt the instructions to build the documentation to the new mechanism and also adapt the root-level Makefile to support building using CMake. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
ae69934cb9
commit
7480f17d50
2 changed files with 35 additions and 16 deletions
11
Makefile
11
Makefile
|
@ -2,16 +2,9 @@
|
|||
# Top level makefile for things not covered by cmake
|
||||
#
|
||||
|
||||
ifeq ($(VERBOSE),1)
|
||||
Q =
|
||||
else
|
||||
Q = @
|
||||
endif
|
||||
|
||||
MAKEFLAGS += --no-print-directory
|
||||
export Q
|
||||
BUILDDIR ?= doc/_build
|
||||
|
||||
# Documentation targets
|
||||
# ---------------------------------------------------------------------------
|
||||
htmldocs:
|
||||
$(Q)$(MAKE) -C doc htmldocs
|
||||
mkdir -p ${BUILDDIR} && cmake -G"Unix Makefiles" -B${BUILDDIR} -Hdoc/ && make -s -C ${BUILDDIR} htmldocs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue