doc-rst: fixed cleandoc target when used with O=dir
[linux-2.6-microblaze.git] / Documentation / Makefile.sphinx
index 91f541a..b88f666 100644 (file)
@@ -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