doc: make build process quiet

make build process less verbose and enable 'make htmldocs' from the top
tree without a need for ZEPHYR_GCC_VARIANT to be defined.

Change-Id: I385667e3d240205913fa806b7481d5ed4e83fbc4
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-01-15 18:19:59 -05:00
commit 47be9a58b1
2 changed files with 5 additions and 3 deletions

View file

@ -602,9 +602,11 @@ export ARCH
ifdef ZEPHYR_GCC_VARIANT
include $(srctree)/scripts/Makefile.toolchain.$(ZEPHYR_GCC_VARIANT)
else
ifneq ($(MAKECMDGOALS),htmldocs)
$(if $(CROSS_COMPILE),, \
$(error ZEPHYR_GCC_VARIANT is not set. ))
endif
endif
-include $(srctree)/ext/Makefile
-include $(srctree)/lib/Makefile

View file

@ -26,7 +26,7 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
doxy-code:
cd .. && doxygen doc/doxygen.config
$(Q)cd .. && doxygen doc/doxygen.config
doxy: doxy-code
@ -70,10 +70,10 @@ content: scripts/extract_content.py
$(Q)$<
kconfig: scripts/genrest/genrest.py
srctree=../ SRCARCH=x86 python $< ../Kconfig reference/kconfig/
$(Q)srctree=../ SRCARCH=x86 python $< ../Kconfig reference/kconfig/
html: content kconfig
$(SPHINXBUILD) -t $(DOC_TAG) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
$(Q)$(SPHINXBUILD) -t $(DOC_TAG) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml