Build system: add target to build documentation

This patch adds a new target to build the documentation
from the top-level directory. Here is how to use it (from
the top-level source directory):
   $ make doc
Or
   $ make O=build-test doc

To clean all documentation build artefacts, simply call
   $ make clean
Or
   $ make O=build-test clean

Calling 'make' with no arguments will *not* build the
documentation by default.

Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
Geoffroy Van Cutsem
2018-06-12 11:38:43 +02:00
committed by Jack Ren
parent 0dd3f8dbe6
commit 2425583c6b
2 changed files with 7 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ SPHINXOPTS ?= -q
SPHINXBUILD = sphinx-build
SPHINXPROJ = "Project ACRN"
SOURCEDIR = .
BUILDDIR = _build
BUILDDIR ?= _build
DOC_TAG ?= development
RELEASE ?= latest