Skip to content

Commit

Permalink
doc-rst: fixed cleandoc target when used with O=dir
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Heiser authored and Jonathan Corbet committed Feb 1, 2017
1 parent 2a0f403 commit 7cabd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/Makefile.sphinx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7cabd5a

Please sign in to comment.