Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp36398ybi; Wed, 29 May 2019 16:11:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3cBB3obsPMqY8XAkbKnNhR9scA/9mY52kWxX05iL2jeyZ0dJ0HnBA3StYjfj+/MdYfoSI X-Received: by 2002:a17:902:4181:: with SMTP id f1mr561000pld.22.1559171468081; Wed, 29 May 2019 16:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559171468; cv=none; d=google.com; s=arc-20160816; b=WGOxiSggTU3/GZV3/r2KCmJec9DlPaRU7mrYbr1KUq0RvK0piSHfDg0GG2EnQGlXFk UoLAg6Mnxa+Bh0ljXs2B9xJ6dJH4xeyJfT2bXrgfmii3EiK9d85fjB/1H8QV9lTrP84e 4xXkd2XPx2S3mmwCJMqK6UCmCfRTa8n7GK9klZg2L989eSIgV8tCaBK2BrmjICjtgZXG 4UH/Cfmq7PPyDU/tsOhQE/QeEzASCLyU/KJdjltw3ZDTPFSHT5DFAznqkV0dK7taMl3o PjfDD+rZ/f9rfnU/F80ODstaJzvdyR+oMoazvC6XXIyWFypd1jPYkoM0hAsUh1i0zepJ UIWw== 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=fDXmQCDQZuXZvbqk1Vg41J1a8n2FPD1DhJ8ZB3k3NMcQSGhJAqUaT5t8te4HI7xn02 8qEwYt30GqI0xvhpqAzkPREA36GFh/AYsnfgr3XKKEbWR1MLFK6Q6R5RzpBSKu1z4AXI Onpk84/Qssay61ePybmOq7nfsGp1MwB5OCZUuYj347nq0kxvLAgoFH6NCEBS+pGg9LMl JzOmBf7v1CtP7iJM0k6FqYtQDH8Y1CFOvxC7r6Y59KrS/i1W/3P92n1wrPTflOl6+kyV hH2Er+33eHqswKUp1zJF7H511RHPhEvgqpzBRHBqKe1HK+34Kp8sfOZ3BKPUJWgYoKX8 EJZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ORQRZbh3; 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 t10si1182650plh.252.2019.05.29.16.10.52; Wed, 29 May 2019 16:11:08 -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=ORQRZbh3; 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 S1726824AbfE2XJo (ORCPT + 99 others); Wed, 29 May 2019 19:09:44 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47606 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbfE2XJh (ORCPT ); Wed, 29 May 2019 19:09:37 -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=ORQRZbh30e09Ci7Cw02tPJuxD9 9HCxjjdooDE1c73SruFsxM2n9djvXkdRZ3NKbVornEe8sq7BUafWrMZqhNarcezJojpmhTDbCJl3L Hb2m7iPvCQ/tjBRQKDkjRVaaENEir0ZZKj/bDHNQYBY7gJEIZRIbUNItmDI587HCHTlO5LyGGREXY qfUU/QqHyG6O9CbVCiza5CrnpAIZdgduts9ZocvtmPoSjWpW2RdqqPOb/RZhPNY1q/JIQIOjoJzt7 9eiMTGOuuCXxl9Bnz1FP34fmbUpQ/qW6v+00jR78spWl/I9+YeMZqnxucpSQfH5aBtK8d3VJWXyUg CjetgcsQ==; Received: from 177.132.232.81.dynamic.adsl.gvt.net.br ([177.132.232.81] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hW7hQ-0000lK-Ia; Wed, 29 May 2019 23:09:36 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hW7hN-0007Tp-OC; Wed, 29 May 2019 20:09:33 -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 09/10] docs: by default, build docs a lot faster with Sphinx >= 1.7 Date: Wed, 29 May 2019 20:09:31 -0300 Message-Id: <46c958ec4e460f138c0d087bdff40ec60d060b83.1559170790.git.mchehab+samsung@kernel.org> 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