Takayuki Shimizukawa  committed befbf6b

Closes #1024: Makefile improve error message if Sphinx is not found

  • Participants
  • Parent commits ecf2c26
  • Branches default

Comments (0)

Files changed (1)

File sphinx/

 PAPER         =
 BUILDDIR      = %(rbuilddir)s
+ifneq ($(shell $(SPHINXBUILD) 2> /dev/null; echo $$?), 0)
+define MSG
+The 'sphinx-build' command was not found. Make sure you have Sphinx
+installed, then set the SPHINXBUILD environment variable to point
+to the full path of the 'sphinx-build' executable. Alternatively you
+may add the Sphinx directory to PATH.
+If you don't have Sphinx installed, grab it from
+$(error $(MSG))
 # Internal variables.
 PAPEROPT_a4     = -D latex_paper_size=a4
 PAPEROPT_letter = -D latex_paper_size=letter