[PATCH 1/3] Makefile: Fix timing of autodate.tex generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit bd1310a7bcd1 ("Makefile: Cope with GhostScript 9.53.0 or later")
introduced ps2pdf and pdfcrop commands in .eps --> .pdf conversion
of figures drawn by pstricks.

There commands generate a couple of temporary files during conversion
and cropping.
This causes autodate.sh to observe untracked files when perfbook is
first built by parallel make (-jN option).

Delay the generation of autodate.tex until after all those conversions
have finished by moving most dependencies of perfbook_flat.tex to
those of autodate.tex.

Fixes: bd1310a7bcd1 ("Makefile: Cope with GhostScript 9.53.0 or later")
Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 0c58f1a0..9d36156d 100644
--- a/Makefile
+++ b/Makefile
@@ -213,10 +213,12 @@ ifeq ($(NEWTXTEXT),)
 endif
 	sh utilities/runfirstlatex.sh $(basename $@)
 
-autodate.tex: perfbook-lt.tex $(LATEXSOURCES) $(BIBSOURCES) $(SVGSOURCES) $(FIGSOURCES) $(DOTSOURCES) $(EPSORIGIN) $(SOURCES_OF_SNIPPET) $(GITREFSTAGS) utilities/fcvextract.pl utilities/autodate.sh
+autodate.tex: perfbook-lt.tex $(LATEXSOURCES) $(BIBSOURCES) \
+    $(PDFTARGETS_OF_EPS) $(PDFTARGETS_OF_SVG) $(FCVSNIPPETS) $(FCVSNIPPETS_VIA_LTMS) \
+    $(GITREFSTAGS) utilities/autodate.sh
 	sh utilities/autodate.sh >autodate.tex
 
-perfbook_flat.tex: autodate.tex $(PDFTARGETS_OF_EPS) $(PDFTARGETS_OF_SVG) $(FCVSNIPPETS) $(FCVSNIPPETS_VIA_LTMS)
+perfbook_flat.tex: autodate.tex
 ifndef LATEXPAND
 	$(error --> $@: latexpand not found. Please install it)
 endif
-- 
2.17.1





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux