From patchwork Wed Nov 2 14:07:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Heiser X-Patchwork-Id: 9409231 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 60A896022E for ; Wed, 2 Nov 2016 14:08:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 537182A144 for ; Wed, 2 Nov 2016 14:08:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46E512A198; Wed, 2 Nov 2016 14:08:00 +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 9C81B2A144 for ; Wed, 2 Nov 2016 14:07:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755412AbcKBOH4 convert rfc822-to-8bit (ORCPT ); Wed, 2 Nov 2016 10:07:56 -0400 Received: from smtp1.goneo.de ([85.220.129.30]:45438 "EHLO smtp1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754938AbcKBOHz (ORCPT ); Wed, 2 Nov 2016 10:07:55 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp1.goneo.de (Postfix) with ESMTP id 1CD0523EFA4; Wed, 2 Nov 2016 15:07:53 +0100 (CET) X-Virus-Scanned: by goneo Received: from smtp1.goneo.de ([127.0.0.1]) by localhost (smtp1.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XF_jPN3n3_h1; Wed, 2 Nov 2016 15:07:41 +0100 (CET) Received: from sol.fritz.box (dyndsl-037-138-071-116.ewe-ip-backbone.de [37.138.71.116]) by smtp1.goneo.de (Postfix) with ESMTPSA id EC89A2424D8; Wed, 2 Nov 2016 15:07:40 +0100 (CET) Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: [PATCH 1/3] doc-rst: generic way to build PDF of sub-folders From: Markus Heiser In-Reply-To: <87ins6jedc.fsf@intel.com> Date: Wed, 2 Nov 2016 15:07:40 +0100 Cc: Mauro Carvalho Chehab , Jonathan Corbet , Linux Media Mailing List Message-Id: <605152A9-0EC8-40DD-8671-437D6369CA94@darmarit.de> References: <1472052976-22541-1-git-send-email-markus.heiser@darmarit.de> <1472052976-22541-2-git-send-email-markus.heiser@darmarit.de> <87ins6jedc.fsf@intel.com> To: Jani Nikula X-Mailer: Apple Mail (2.1510) 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 Am 02.11.2016 um 12:43 schrieb Jani Nikula : > On Wed, 24 Aug 2016, Markus Heiser wrote: >> From: Markus Heiser >> >> This extends the method to build only sub-folders to the targets >> "latexdocs" and "pdfdocs". To do so, a conf.py in the sub-folder is >> required, where the latex_documents of the sub-folder are >> defined. E.g. to build only gpu's PDF add the following to the >> Documentation/gpu/conf.py:: >> >> +latex_documents = [ >> + ("index", "gpu.tex", "Linux GPU Driver Developer's Guide", >> + "The kernel development community", "manual"), >> +] >> >> and run: >> >> make SPHINXDIRS=gpu pdfdocs > > Did you ever try this with more than one subfolder? Seems not, there is a ";" missed in the 'foreach' loop, see patch below. To avoid conflicts, can you apply the ";" on your "Makefile.sphinx improvements" series? / Thanks --Markus -- --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx index 92deea3..b7fbd12 100644 --- a/Documentation/Makefile.sphinx +++ b/Documentation/Makefile.sphinx @@ -76,7 +76,7 @@ endif # HAVE_PDFLATEX pdfdocs: latexdocs ifneq ($(HAVE_PDFLATEX),0) - $(foreach var,$(SPHINXDIRS), $(MAKE) PDFLATEX=xelatex LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/$(var)/latex) + $(foreach var,$(SPHINXDIRS), $(MAKE) PDFLATEX=xelatex LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/$(var)/latex;) endif # HAVE_PDFLATEX epubdocs: