Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5111459ybi; Tue, 4 Jun 2019 01:12:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDZIcQBCqzX5oOAoJtNUNSoV4Wc7QI22/+cyoXHB83Gw+LeHOA01GnmzRpqDKlQM/24La2 X-Received: by 2002:a17:90a:c38a:: with SMTP id h10mr35016416pjt.124.1559635964681; Tue, 04 Jun 2019 01:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559635964; cv=none; d=google.com; s=arc-20160816; b=SG9Pdxb86SkrPQZopwbytjmlHicArYCkOeEsCOfLZYBoXi1m42+831xsK87a0xfO2E RPUEVNcXYrgHxuaBY9h2oOmIYVK2B7bpjU+3D6LAmCRnVeu/H+oRDw9l3C0AVbE4KPZe o/mnmRz5bPS67++fL+QU0Wyub/SLpSGlza5K93Ch+vJyIUB5IcmO3Wl+lH8K0zXzmHZa Ap580/1ipP5IDJSIFvbMkzQ3/QhYH+8aoRPoACTKBd5g7OzR32+5x18NIRZ0065QDoNh zoKh0se9D4hPmGGV+CC7jr5ouA0efB5fL5IipeH8SXlqDM7wGCfUaWQaQsdQ5DCy29DM kjHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=qzWNzgJ5UQLaZAM6szNhDojeveMpGPbJSaQ9cnvpE2g=; b=Xkk7h+F+mzqsVfADBRpdmu8Y74sBHesFN9V3CrNgFHjczZi4YjWsuDQtH6A65MpNY6 ZTuj+yiB/8zCxDDD/BjZYiZQ7RlUZYbu6987ue+qi/bPuHyDMVfRYYcs5omoALCo4gfa 0eYbztEJpiwWYdiyy4+srLvBUlgqdxI8ysYDKiVehPgOPdYYQE0ia0SHwz3crTiIYEw+ g7E0tx+aDiE5WMzOBNq/K7mSd3qBoazpf7GOwnkIqF80hZ5aUA7qEra4q0bZqBmgMGWh BqO725ge2HZOyR0SpOx1uyL3/zUy2nngauALSXtMnD2SJBlPrS83QDn8FSkNOdfVM/In 0V2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s68si23624344pfb.39.2019.06.04.01.12.28; Tue, 04 Jun 2019 01:12:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbfFDILX (ORCPT + 99 others); Tue, 4 Jun 2019 04:11:23 -0400 Received: from mga18.intel.com ([134.134.136.126]:26955 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbfFDILX (ORCPT ); Tue, 4 Jun 2019 04:11:23 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jun 2019 01:11:21 -0700 X-ExtLoop1: 1 Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.150]) by fmsmga001.fm.intel.com with ESMTP; 04 Jun 2019 01:11:20 -0700 From: Jani Nikula To: Mauro Carvalho Chehab , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH 09/10] docs: by default, build docs a lot faster with Sphinx >= 1.7 In-Reply-To: <46c958ec4e460f138c0d087bdff40ec60d060b83.1559170790.git.mchehab+samsung@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <46c958ec4e460f138c0d087bdff40ec60d060b83.1559170790.git.mchehab+samsung@kernel.org> Date: Tue, 04 Jun 2019 11:14:27 +0300 Message-ID: <877ea14vj0.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 May 2019, Mauro Carvalho Chehab wrote: > Since Sphinx version 1.7, it is possible to use "-jauto" in > order to speedup documentation builds. On older versions, > while -j was already supported, one would need to set the > number of threads manually. > > So, if SPHINXOPTS is not provided, add -jauto, in order to > speed up the build. That makes it *a lot* times faster than > without -j. > > If one really wants to slow things down, it can just use: > > make SPHINXOPTS=-j1 htmldocs > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/Makefile b/Documentation/Makefile > index 380e24053d6f..794233d05789 100644 > --- a/Documentation/Makefile > +++ b/Documentation/Makefile > @@ -28,6 +28,8 @@ ifeq ($(HAVE_SPHINX),0) > > else # HAVE_SPHINX > > +SPHINXOPTS = $(shell perl -e 'open IN,"sphinx-build --version |"; while () { if (m/([\d\.]+)/) { print "-jauto" if ($$1 >= "1.7") } ;} close IN') > + Setting SPHINXOPTS like this means you can't pass additional Sphinx options without also dropping -jauto. Which means whenever you want to use SPHINXOPTS for what it's meant for, you also need to provide -jauto to get the same result. BR, Jani. > # User-friendly check for pdflatex and latexmk > HAVE_PDFLATEX := $(shell if which $(PDFLATEX) >/dev/null 2>&1; then echo 1; else echo 0; fi) > HAVE_LATEXMK := $(shell if which latexmk >/dev/null 2>&1; then echo 1; else echo 0; fi) -- Jani Nikula, Intel Open Source Graphics Center