All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [RFT PATCH -perfbook v3 v3 2/4] Makefile: Fix issues WRT parallel runs of pdflatex
Date: Sat, 29 Jan 2022 20:25:30 +0900	[thread overview]
Message-ID: <bbd1c4e2-00a5-28e6-61db-acdbe1f67916@gmail.com> (raw)
In-Reply-To: <e4f48e3d-7efe-f822-1002-6836d63b542f@gmail.com>

There is a couple of minor issues in Makefile WRT parallel runs of
runfirstlatex.sh.

When some of perfbook-xxx.tex files already exist, runfirstlatex.sh
for other main perfbook-yyy.tex can be invoked prematurely before
that .tex file gets ready.
Fix it by adding stricter dependencies of perfbook-xxx.aux on
perfbook-xxx.tex.

Also sort out dependencies around here.
autodate.tex now depends only on files in the Git repo.
Instead, perfbook_flat.tex acts as a barrier between the file
conversion phase and the pdflatex phase.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 Makefile | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 6ee849fd..ee1880ff 100644
--- a/Makefile
+++ b/Makefile
@@ -222,18 +222,20 @@ $(PDFTARGETS): %.pdf: %.tex %.bbl
 $(PDFTARGETS:.pdf=.bbl): %.bbl: %.aux $(BIBSOURCES)
 	bibtex $(basename $@)
 
-$(PDFTARGETS:.pdf=.aux): $(LATEXGENERATED) $(LATEXSOURCES) $(LST_SOURCES)
+$(PDFTARGETS:.pdf=.aux): %.aux: %.tex $(LATEXGENERATED)
 ifeq ($(NEWTXTEXT),)
 	$(error Font package 'newtx' not found. See #9 in FAQ-BUILD.txt)
 endif
 	sh utilities/runfirstlatex.sh $(basename $@)
 
-autodate.tex: perfbook-lt.tex $(LATEXSOURCES) $(BIBSOURCES) \
-    $(PDFTARGETS_OF_EPS) $(PDFTARGETS_OF_SVG) $(FCVSNIPPETS) $(FCVSNIPPETS_VIA_LTMS) \
-    $(GITREFSTAGS) utilities/autodate.sh
+autodate.tex: $(LATEXSOURCES) $(BIBSOURCES) $(SOURCES_OF_SNIPPET) \
+    $(LST_SOURCES) $(FIGSOURCES) $(DOTSOURCES) $(EPSORIGIN) \
+    $(SVGSOURCES) $(GITREFSTAGS) \
+    utilities/autodate.sh
 	sh utilities/autodate.sh
 
-perfbook_flat.tex: autodate.tex
+perfbook_flat.tex: autodate.tex $(PDFTARGETS_OF_EPS) $(PDFTARGETS_OF_SVG) \
+    $(FCVSNIPPETS) $(FCVSNIPPETS_VIA_LTMS)
 ifndef LATEXPAND
 	$(error --> $@: latexpand not found. Please install it)
 endif
-- 
2.17.1



  parent reply	other threads:[~2022-01-29 11:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-29 11:19 [RFT PATCH -perfbook v3 v3 0/4] Enable parallel runs of pdflatex Akira Yokosawa
2022-01-29 11:23 ` [RFT PATCH -perfbook v3 v3 1/4] Replace \include{} with \input{} for parallel pdflatex runs Akira Yokosawa
2022-01-29 11:25 ` Akira Yokosawa [this message]
2022-01-29 11:27 ` [RFT PATCH -perfbook v3 v3 3/4] Restore Makefile as of 2022.01.25 Akira Yokosawa
2022-01-29 11:28 ` [RFT PATCH -perfbook v3 v3 4/4] Add script for parallel-pdflatex-run regression test Akira Yokosawa
     [not found] ` <20220130043603.GR4285@paulmck-ThinkPad-P17-Gen-1>
2022-01-30  9:30   ` [RFT PATCH -perfbook v3 v3 0/4] Enable parallel runs of pdflatex Akira Yokosawa
2022-01-30  9:38 ` [RFT PATCH -perfbook v3 5/4] Makefile: Fix regression of parallel run of autodate.sh Akira Yokosawa
2022-01-31  1:48   ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbd1c4e2-00a5-28e6-61db-acdbe1f67916@gmail.com \
    --to=akiyks@gmail.com \
    --cc=paulmck@kernel.org \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.