Skip to content

Commit 4ed3f82

Browse files
mgeensauvipy
authored andcommitted
Fixed sphinx-build check in Makefile (celery#4728)
If sphinx-build is not installed, the Makefile returns the cryptic 'recipe commences before first target. Stop.' when building the docs. The cause is a tab resulting in a syntax error. This was a bug in the Makefile generated by Sphinx, which has since been fixed: sphinx-doc/sphinx#2521 I've applied the same fix, which is removing the 'user-friendly' message. The resulting error message is 'sphinx-build: Command not found', which ought to be clear enough.
1 parent a11b09f commit 4ed3f82

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

docs/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
99

10-
# User-friendly check for sphinx-build
11-
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12-
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don\'t have Sphinx installed, grab it from http://sphinx-doc.org/)
13-
endif
14-
1510
# Internal variables.
1611
PAPEROPT_a4 = -D latex_paper_size=a4
1712
PAPEROPT_letter = -D latex_paper_size=letter

0 commit comments

Comments
 (0)