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: 37897 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1wCw-0004Vz-5u; Wed, 02 Nov 2016 14:08:02 +0000 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.84_2/mailfrontend-8) with esmtp id 1c1wCs-0004LL-kX; Wed, 02 Nov 2016 15:08:00 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755412AbcKBOH4 convert rfc822-to-8bit (ORCPT + 1 other); 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 X-Spam-Flag: NO X-Spam-Score: -2.832 X-Spam-Level: X-Spam-Status: No, score=-2.832 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=0.068, BAYES_00=-1.9] autolearn=unavailable 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-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.11.2.140016 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' MULTIPLE_RCPTS 0.1, RCVD_FROM_IP_DATE 0.1, HTML_00_01 0.05, HTML_00_10 0.05, MIME_LOWER_CASE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1700_1799 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, IN_REP_TO 0, LEGITIMATE_NEGATE 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, MULTIPLE_REAL_RCPTS 0, NO_URI_HTTPS 0, REFERENCES 0, SINGLE_URI_IN_BODY 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CC_NAME 0, __CC_NAME_DIFF_FROM_ACC 0, __CC_REAL_NAMES 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FORWARDED_MSG 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __MSGID_APPLEMAIL 0, __MULTIPLE_RCPTS_CC_X2 0, __REFERENCES 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NAME_DIFF_FROM_ACC 0, __TO_REAL_NAMES 0, __URI_IN_BODY 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __USER_AGENT_APPLEMAIL 0, __X_MAILER_APPLEMAIL 0' 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: