docs: look for sphinx-pre-install in the source tree
authorJonathan Corbet <corbet@lwn.net>
Fri, 31 May 2019 16:02:11 +0000 (10:02 -0600)
committerJonathan Corbet <corbet@lwn.net>
Fri, 31 May 2019 16:02:11 +0000 (10:02 -0600)
Recent makefile changes included an invocation of
./scripts/sphinx-pre-install.  Unfortunately, that fails when a separate
build directory is in use with:

  /bin/bash: ./scripts/sphinx-pre-install: No such file or directory

Use $(srctree) to fully specify the location of this script.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/Makefile

index 85d3cfafd77c0cf7e6b52a878b517f5ec844aa96..2edd03b1dad6a7e240d2885df74ec3e2efa182e3 100644 (file)
@@ -23,7 +23,7 @@ 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
-       @./scripts/sphinx-pre-install
+       @$(srctree)/scripts/sphinx-pre-install
        @echo "  SKIP    Sphinx $@ target."
 
 else # HAVE_SPHINX