# You can set these variables from the command line.
SPHINXBUILD= sphinx-build
SPHINXOPTS=
PAPER=
BUILDDIR=$(obj)/output
# User-friendly check for sphinx-build
HAVE_SPHINX:=$(shell if which $(SPHINXBUILD) >/dev/null 2>&1;thenecho 1;elseecho 0;fi)
ifeq($(HAVE_SPHINX),0)
.DEFAULT:
$(warning The '$(SPHINXBUILD)'command was not found. Make sure you have Sphinx installed and in PATH, or set the SPHINXBUILD make variable to point to the full path of the '$(SPHINXBUILD)' executable.)
@echo " SKIP Sphinx $@ target."
else# HAVE_SPHINX
# User-friendly check for rst2pdf
HAVE_RST2PDF:=$(shell if python -c "import rst2pdf" >/dev/null 2>&1;thenecho 1;elseecho 0;fi)