summaryrefslogtreecommitdiffstats
path: root/Documentation/Makefile.sphinx
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2017-01-31 10:57:41 +0100
committerJonathan Corbet <corbet@lwn.net>2017-02-01 21:09:45 +0100
commit7cabd5ac69a4135fd8dbc1f1bb9c9531a5f1e5c7 (patch)
treed34c6ede476124468623685446c78d9f14ef907b /Documentation/Makefile.sphinx
parentDocumentation/sphinx: prevent generation of .pyc files in the source tree (diff)
downloadlinux-7cabd5ac69a4135fd8dbc1f1bb9c9531a5f1e5c7.tar.xz
linux-7cabd5ac69a4135fd8dbc1f1bb9c9531a5f1e5c7.zip
doc-rst: fixed cleandoc target when used with O=dir
The cleandocs target won't work if I use a different output folder:: $ make O=/tmp/kernel SPHINXDIRS="process" cleandocs make[1]: Entering directory '/tmp/kernel' make[3]: *** No rule to make target 'clean'. Stop. ... Documentation/Makefile.sphinx:100: recipe for target 'cleandocs' failed Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/Makefile.sphinx')
-rw-r--r--Documentation/Makefile.sphinx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx
index 91f541a52884..b88f666f72bb 100644
--- a/Documentation/Makefile.sphinx
+++ b/Documentation/Makefile.sphinx
@@ -99,7 +99,7 @@ installmandocs:
cleandocs:
$(Q)rm -rf $(BUILDDIR)
- $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) -C Documentation/media clean
+ $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/media clean
endif # HAVE_SPHINX