aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile.sphinx
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2020-10-05 14:19:32 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2020-10-05 14:19:32 +0200
commit9ae5cce76693d7c12396cee1183aaf371bb3d66c (patch)
tree515b96520ce09d6d1cead148c5bf7717f1dae32b /doc/Makefile.sphinx
parentec4c481a0c3a3ccd0ef0832f128afdc047876552 (diff)
downloadbitbake-contrib-9ae5cce76693d7c12396cee1183aaf371bb3d66c.tar.gz
docs: sphinx: report errors when dependencies are not met
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'doc/Makefile.sphinx')
-rw-r--r--doc/Makefile.sphinx4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/Makefile.sphinx b/doc/Makefile.sphinx
index c663c2954..c9518558b 100644
--- a/doc/Makefile.sphinx
+++ b/doc/Makefile.sphinx
@@ -9,6 +9,10 @@ SOURCEDIR = .
BUILDDIR = _build
DESTDIR = final
+ifeq ($(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi),0)
+$(error "The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed")
+endif
+
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)