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

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

 



On Mon, Jan 18, 2021 at 12:04:23AM +0900, Akira Yokosawa wrote:
> 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>

As advertised, recloned and built with "make -j24" and no "(m)".

Queued and pushed, thank you!

							Thanx, Paul

> ---
>  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