doc-rst: fixed cleandoc target when used with O=dir
authorMarkus Heiser <markus.heiser@darmarit.de>
Tue, 31 Jan 2017 09:57:41 +0000 (10:57 +0100)
committerJonathan Corbet <corbet@lwn.net>
Wed, 1 Feb 2017 20:09:45 +0000 (13:09 -0700)
commit7cabd5ac69a4135fd8dbc1f1bb9c9531a5f1e5c7
treed34c6ede476124468623685446c78d9f14ef907b
parent2a0f4038a4919712a62031dc63aa871a84b4ad05
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>
Documentation/Makefile.sphinx