Parallel build of .pdf and .fcv files by "make -jN" worked when a single PDF target was specified. On the other hand, "make -j3 2c 1c eb" ended up in various errors during parallel runs of pdflatex. It turns out that the cause of the error is the \include{} commands in appendix/appendix.tex and perfbook-lt.tex. \include{} switches to its own .aux file, in this case, appendix/questions.aux, appendix/toyrcu.aux, and so on. As their names are common to different PDF targets, those .aux files can be overwritten/corrupted by parallel runs of pdflatex. \include{} implies \cleardoublepage both in front of and next to it. In perfbook, included LaTeX sources have \chapter{} commands and the implied page breaks are redundant. By replacing \include{} commands with \input{} commands, parallel runs of pdflatex can be enabled. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- appendix/appendix.tex | 8 ++++---- perfbook-lt.tex | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/appendix/appendix.tex b/appendix/appendix.tex index f2640157..edcfe7ef 100644 --- a/appendix/appendix.tex +++ b/appendix/appendix.tex @@ -2,9 +2,9 @@ % mainfile: ../perfbook.tex % SPDX-License-Identifier: CC-BY-SA-3.0 -\include{appendix/questions/questions} -\include{appendix/toyrcu/toyrcu} -\include{appendix/whymb/whymemorybarriers} -\include{appendix/styleguide/styleguide} +\input{appendix/questions/questions} +\input{appendix/toyrcu/toyrcu} +\input{appendix/whymb/whymemorybarriers} +\input{appendix/styleguide/styleguide} \renewcommand{\bottomtitlespace}{.08\textheight} \QuickQuizAnswers diff --git a/perfbook-lt.tex b/perfbook-lt.tex index 085ce55d..d70dde66 100644 --- a/perfbook-lt.tex +++ b/perfbook-lt.tex @@ -667,12 +667,12 @@ % Credits \setcounter{secnumdepth}{-1} % surpress section numbering in backmatter -\include{ack} +\input{ack} % Index if enabled \IfIndexOn{ \IfIndexHier{ -\include{indexsee} +\input{indexsee} }{} \phantomsection \IfEbookSize{ -- 2.17.1