Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3675362ybi; Mon, 27 May 2019 04:10:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTv+AgHaIHZd6QhPTdL76Y/Uxj25/uf6KuKzZ7P/bRnJA/U/RDbNkAY1kfGXmf3qcDfxl7 X-Received: by 2002:a17:902:10c:: with SMTP id 12mr127629220plb.61.1558955424449; Mon, 27 May 2019 04:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558955424; cv=none; d=google.com; s=arc-20160816; b=B+Y2HqKUnnXyFrJiaGqjR3ei3NbUT4y3SosmRoB2fJiOvSrcmenLDxG0YaogJrX0r7 Oi0MsqLw0yJIf3duUewqu7QYaDAwLeGgudfxFCfForgAUKK3+Lo5mnU1aPJ+b00d9JmY +2zo2YZoHIVECQ9aNNoUojPxgx3BCVGMi+RVQ2XNOPyPz0rg89x2jaSizYu+trT6qKir 3carX0+EV/WSpSY+1KT/LjiYN9AWy69j+NFbPPiFjsLsEm07t6yeqbDWWzuiqSmhWKzu zIreu1KVsZ+zDkRSvuDRcc4zYot4/vjQmo25WQ38r3iqy/+xTzjKhQQXkwbSsYQAaelo 7FtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uQCGkdMpLup5seR2eOGZrEj83EK7R6BAf5CrYNPT128=; b=rRGJt3NA+h5VRsRNFEdTwuUlhPRzSt0mJApOZJCcjPhTI7VfSBWy6ETSxHocN3Nn45 Z+p37Y3ZzUFyyM/jaJt086z1w/uQA20Uc2/TO98mbqWhNdca4KnYcJylhcKG0vD/wnWa HVrNJVVeQ5PDi3+UtUtx4hMt6nslZEHiEdu4To5tKxHERMQcz/uCJzCYe/4+LaI7CLcB 7wptN6raHBZsrBB0EVMWPjuZfehaDzYbnNXh5YkaCVSxtNCrlFYkjPzvRcTOSwn/cff3 PprMlvPCFRHF8a6L2bL86UXkCw0V0fDjXk8q2GDqDuHgnsAwc58iwQmA5QTpZXlx6StE ONNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kkDbAtbi; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s8si17058424plq.106.2019.05.27.04.10.08; Mon, 27 May 2019 04:10:24 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kkDbAtbi; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726569AbfE0LHs (ORCPT + 99 others); Mon, 27 May 2019 07:07:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57836 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbfE0LHs (ORCPT ); Mon, 27 May 2019 07:07:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uQCGkdMpLup5seR2eOGZrEj83EK7R6BAf5CrYNPT128=; b=kkDbAtbig016mmWPk8Q0ECOcNj 6i2x6TRRxm4pHg7q3zywdNvrVs9WWeNsxq3w9Gd7v2tarbn1H3xpSsDlPWX4gLPezG0bpho94/h+v 62+mv5ya/1QC+iZREHYViN0Dlla+oOJoWs5/EbGNRiG+nBYqEKi8yHgq3TSh9VFXiOuJM5qzE2Ngx mTu3xOeYoV8vPuLOibnNBdUf52Og/A36QXmcSz4gTKNEr/una58qXtqftt7QUkCtXXyVvKBnsAB59 rJMf9IlCyYwUrmOv9mqhkbESd+Pr/FAL+pRLbR62WC5iOd/HXgjQqJdz+ysoCimzGWsxfZPSvD9XZ 3W7lZGWw==; Received: from [177.159.249.4] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hVDTn-00061v-O8; Mon, 27 May 2019 11:07:47 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hVDTi-0002cq-Qa; Mon, 27 May 2019 08:07:42 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH 4/5] docs: by default, build docs a lot faster with Sphinx >= 1.7 Date: Mon, 27 May 2019 08:07:40 -0300 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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') + # 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) -- 2.21.0