Skip to content

Commit

Permalink
doc: add clean target to Makefile
Browse files Browse the repository at this point in the history
Top-level Makefile is for documentation build convenience, so make it a
bit more convenient by adding a make clean target (sometimes needed when
to do a clean doc build when changes are made).

Signed-off-by: David B. Kinder <[email protected]>
  • Loading branch information
dbkinder authored and nashif committed Feb 5, 2019
1 parent 3ea29d0 commit d34c116
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Top level makefile for things not covered by cmake
# Top level makefile for documentation build
#

ifndef ZEPHYR_BASE
Expand All @@ -12,6 +12,9 @@ SPHINXOPTS ?= -q

# Documentation targets
# ---------------------------------------------------------------------------
clean:
rm -rf ${BUILDDIR}

htmldocs:
mkdir -p ${BUILDDIR} && cmake -GNinja -DDOC_TAG=${DOC_TAG} -DSPHINXOPTS=${SPHINXOPTS} -B${BUILDDIR} -Hdoc/ && ninja -C ${BUILDDIR} htmldocs

Expand Down

0 comments on commit d34c116

Please sign in to comment.