Re: [PATCH] Another regression fix of build script improvement

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

 



On Tue, Apr 26, 2016 at 10:16:34PM +0900, Akira Yokosawa wrote:
> >From c2ea05aa026f81e4b7641b8a14144fd8caa8f661 Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiysw@xxxxxxxxx>
> Date: Tue, 26 Apr 2016 21:20:15 +0900
> Subject: [PATCH] Another regression fix of build script improvement
> 
> After commit 4038e781ed56 ("Improve behavior of build scripts"),
> it is impossible to build 'perfbook-1c.pdf' and 'perfbook-hb.pdf'
> just after cloning the git repository.
> The reason is the lack of rules for 'perfbook-1c.tex' and
> 'perfbook-hb.tex'targets, which are required for them.
> This commit adds those rules to Makefile.
> The reason I couldn't find the bug during my test is both
> 'perfbook-1c.tex' and 'perfbook-hb.tex' survive even
> 'make neatfreak' which I assumed to be used to clean everything.
> To avoid similar regression to recur, this commit also appends
> them to the 'clean' target.
> 
> Signed-off-by: Akira Yokosawa <akiysw@xxxxxxxxx>

Queued and pushed, thank you!

							Thanx, Paul

> ---
>  Makefile | 14 +++++++++-----
>  1 file changed, 9 insertions(+), 5 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index b909c81..4d9ed30 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -176,20 +176,24 @@ perfbook.bbl: $(BIBSOURCES) perfbook.aux
>  perfbook.aux: $(LATEXSOURCES) $(EPSSOURCES) extraction embedfonts
>  	sh utilities/runfirstlatex.sh perfbook
> 
> -perfbook-1c.pdf: perfbook-1c.bbl $(LATEXSOURCES) $(EPSSOURCES) extraction embedfonts
> -	sed -e 's/,twocolumn//' -e '/^\\frontmatter/a \\\\pagestyle{plain}' -e 's/setboolean{twocolumn}{true}/setboolean{twocolumn}{false}/' < perfbook.tex > perfbook-1c.tex
> +perfbook-1c.pdf: perfbook-1c.tex perfbook-1c.bbl $(LATEXSOURCES) $(EPSSOURCES) extraction embedfonts
>  	sh utilities/runlatex.sh perfbook-1c
> 
> +perfbook-1c.tex: perfbook.tex
> +	sed -e 's/,twocolumn//' -e '/^\\frontmatter/a \\\\pagestyle{plain}' -e 's/setboolean{twocolumn}{true}/setboolean{twocolumn}{false}/' < perfbook.tex > perfbook-1c.tex
> +
>  perfbook-1c.bbl: $(BIBSOURCES) perfbook-1c.aux
>  	bibtex perfbook-1c
> 
>  perfbook-1c.aux: $(LATEXSOURCES) $(EPSSOURCES) extraction embedfonts
>  	sh utilities/runfirstlatex.sh perfbook-1c
> 
> -perfbook-hb.pdf: perfbook-hb.bbl $(LATEXSOURCES) $(EPSSOURCES) extraction embedfonts
> -	sed -e 's/,twocolumn/&,letterpaperhb/' -e 's/setboolean{hardcover}{false}/setboolean{hardcover}{true}/' < perfbook.tex > perfbook-hb.tex
> +perfbook-hb.pdf: perfbook-hb.tex perfbook-hb.bbl $(LATEXSOURCES) $(EPSSOURCES) extraction embedfonts
>  	sh utilities/runlatex.sh perfbook-hb
> 
> +perfbook-hb.tex: perfbook.tex
> +	sed -e 's/,twocolumn/&,letterpaperhb/' -e 's/setboolean{hardcover}{false}/setboolean{hardcover}{true}/' < perfbook.tex > perfbook-hb.tex
> +
>  perfbook-hb.bbl: $(BIBSOURCES) perfbook-hb.aux
>  	bibtex perfbook-hb
> 
> @@ -257,7 +261,7 @@ clean:
>  		-o -name '*.dvi' -o -name '*.log' \
>  		-o -name '*.qqz' -o -name '*.toc' -o -name '*.bbl' | xargs rm -f
>  	rm -f perfbook_flat.tex perfbook_html.tex perfbook.out perfbook-1c.out
> -	rm -f perfbook-hb.out
> +	rm -f perfbook-hb.out perfbook-1c.tex perfbook-hb.tex
>  	rm -rf perfbook_html
>  	rm -f SMPdesign/DiningPhilosopher5.eps \
>  	      SMPdesign/DiningPhilosopher5TB.eps \
> -- 
> 1.9.1
> 

--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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