From 7de2fa3c7fabd2ff02e261c66f09c5e2ff989c07 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 21 Aug 2023 13:08:00 -0600 Subject: docs: Build in parallel Use all available cores to speed up building the documentation. As $(SPHINXOPTS) has no default in `Makefile.sphinx`, we can communicate it to all sub-makes via `export`. Change-Id: I25996f17348505722f3489a15a975de620331b5a Signed-off-by: Simon Glass Signed-off-by: Nico Huber Original-reviewed-on: https://review.coreboot.org/c/coreboot/+/77363 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77452 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- Documentation/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Documentation') diff --git a/Documentation/Makefile b/Documentation/Makefile index 54306a278cb2..4d08c932b411 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -6,6 +6,9 @@ PDFLATEX = pdflatex -t a4 BUILDDIR ?= _build +SPHINXOPTS ?= -j auto + +export SPHINXOPTS FIGS=codeflow.pdf hypertransport.pdf @@ -57,7 +60,7 @@ distclean: clean rm -f corebootPortingGuide.pdf livesphinx: $(BUILDDIR) - $(MAKE) -f Makefile.sphinx livehtml SPHINXOPTS="$(SPHINXOPTS)" BUILDDIR="$(BUILDDIR)" + $(MAKE) -f Makefile.sphinx livehtml BUILDDIR="$(BUILDDIR)" test: @echo "Test for logging purposes - Failing tests will not fail the build" -- cgit v1.2.3