From patchwork Tue Jan 31 09:57:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Heiser X-Patchwork-Id: 9546827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4702060236 for ; Tue, 31 Jan 2017 10:07:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3973C281A7 for ; Tue, 31 Jan 2017 10:07:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E45928249; Tue, 31 Jan 2017 10:07:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 556BE28210 for ; Tue, 31 Jan 2017 10:07:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751470AbdAaKHC (ORCPT ); Tue, 31 Jan 2017 05:07:02 -0500 Received: from smtp2-2.goneo.de ([85.220.129.34]:57309 "EHLO smtp2-2.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751491AbdAaKGs (ORCPT ); Tue, 31 Jan 2017 05:06:48 -0500 X-Greylist: delayed 486 seconds by postgrey-1.27 at vger.kernel.org; Tue, 31 Jan 2017 05:06:48 EST Received: from localhost (localhost [127.0.0.1]) by smtp2.goneo.de (Postfix) with ESMTP id 104AB23F5D5; Tue, 31 Jan 2017 10:58:02 +0100 (CET) X-Virus-Scanned: by goneo Received: from smtp2.goneo.de ([127.0.0.1]) by localhost (smtp2.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3pzHIWq-_D25; Tue, 31 Jan 2017 10:57:51 +0100 (CET) Received: from ubu1604.fritz.box (host-091-097-253-142.ewe-ip-backbone.de [91.97.253.142]) by smtp2.goneo.de (Postfix) with ESMTPSA id 5C14223F372; Tue, 31 Jan 2017 10:57:51 +0100 (CET) From: Markus Heiser To: Jonathan Corbet , Mauro Carvalho Chehab Cc: Markus Heiser , "linux-doc @ vger . kernel . org List" , "linux-media @ vger . kernel . org" Subject: [PATCH] doc-rst: fixed cleandoc target when used with O=dir Date: Tue, 31 Jan 2017 10:57:41 +0100 Message-Id: <1485856661-23095-1-git-send-email-markus.heiser@darmarit.de> X-Mailer: git-send-email 2.7.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- Documentation/Makefile.sphinx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx index e14d82a..be1936e 100644 --- a/Documentation/Makefile.sphinx +++ b/Documentation/Makefile.sphinx @@ -98,7 +98,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