All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Makefile: Keep perfbook-lt.tex in 'make clean'
@ 2020-04-01 15:14 Akira Yokosawa
  2020-04-01 16:07 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Akira Yokosawa @ 2020-04-01 15:14 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

From a6bd9bf5fa162e8b2c271e51163da3f2f27ac8c1 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Thu, 2 Apr 2020 00:04:56 +0900
Subject: [PATCH] Makefile: Keep perfbook-lt.tex in 'make clean'

Commit 39cb8ba9cf56 ("Let paper size be orthogonal to 1c/2c layout
variations") changed the base of main .tex file from perfbook.tex to
perfbook-lt.tex.
However, the recipe of "clean" was not updated and it removes
perfbook-lt.tex rather than perfbook.tex.

Fix this by using a new variable GENERATED_MAIN in "clean".

Fixes: 39cb8ba9cf56 ("Let paper size be orthogonal to 1c/2c layout variations")
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index a2786b1b..e24c5729 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ TWOCOLTARGETS := mstx msr msn msnt sf qq nq
 ABBREVTARGETS := lt hb a4 1c tcb msns mss $(TWOCOLTARGETS) $(foreach v,$(TWOCOLTARGETS),1c$(v))
 
 PDFTARGETS := perfbook.pdf $(foreach v,$(ABBREVTARGETS),perfbook-$(v).pdf)
+GENERATED_MAIN := $(filter-out perfbook-lt.tex,$(foreach v,$(ABBREVTARGETS),perfbook-$(v).tex)) perfbook.tex
 
 EPSSOURCES_FROM_TEX := \
 	SMPdesign/DiningPhilosopher5.eps \
@@ -490,7 +491,7 @@ clean:
 		-o -name '*.dvi' -o -name '*.log' \
 		-o -name '*.qqz' -o -name '*.toc' -o -name '*.bbl' \
 		-o -name '*.pdfp' -o -name '*.pdfq' | xargs rm -f
-	rm -f perfbook_flat.tex perfbook*.out perfbook-*.tex
+	rm -f perfbook_flat.tex perfbook*.out $(GENERATED_MAIN)
 	rm -f $(LATEXGENERATED)
 	rm -f CodeSamples/snippets.d
 	rm -f *.synctex*
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Makefile: Keep perfbook-lt.tex in 'make clean'
  2020-04-01 15:14 [PATCH] Makefile: Keep perfbook-lt.tex in 'make clean' Akira Yokosawa
@ 2020-04-01 16:07 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2020-04-01 16:07 UTC (permalink / raw)
  To: Akira Yokosawa; +Cc: perfbook

On Thu, Apr 02, 2020 at 12:14:50AM +0900, Akira Yokosawa wrote:
> >From a6bd9bf5fa162e8b2c271e51163da3f2f27ac8c1 Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Thu, 2 Apr 2020 00:04:56 +0900
> Subject: [PATCH] Makefile: Keep perfbook-lt.tex in 'make clean'
> 
> Commit 39cb8ba9cf56 ("Let paper size be orthogonal to 1c/2c layout
> variations") changed the base of main .tex file from perfbook.tex to
> perfbook-lt.tex.
> However, the recipe of "clean" was not updated and it removes
> perfbook-lt.tex rather than perfbook.tex.
> 
> Fix this by using a new variable GENERATED_MAIN in "clean".
> 
> Fixes: 39cb8ba9cf56 ("Let paper size be orthogonal to 1c/2c layout variations")
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>

Queued and pushed, thank you, Akira!

							Thanx, Paul

> ---
>  Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index a2786b1b..e24c5729 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -22,6 +22,7 @@ TWOCOLTARGETS := mstx msr msn msnt sf qq nq
>  ABBREVTARGETS := lt hb a4 1c tcb msns mss $(TWOCOLTARGETS) $(foreach v,$(TWOCOLTARGETS),1c$(v))
>  
>  PDFTARGETS := perfbook.pdf $(foreach v,$(ABBREVTARGETS),perfbook-$(v).pdf)
> +GENERATED_MAIN := $(filter-out perfbook-lt.tex,$(foreach v,$(ABBREVTARGETS),perfbook-$(v).tex)) perfbook.tex
>  
>  EPSSOURCES_FROM_TEX := \
>  	SMPdesign/DiningPhilosopher5.eps \
> @@ -490,7 +491,7 @@ clean:
>  		-o -name '*.dvi' -o -name '*.log' \
>  		-o -name '*.qqz' -o -name '*.toc' -o -name '*.bbl' \
>  		-o -name '*.pdfp' -o -name '*.pdfq' | xargs rm -f
> -	rm -f perfbook_flat.tex perfbook*.out perfbook-*.tex
> +	rm -f perfbook_flat.tex perfbook*.out $(GENERATED_MAIN)
>  	rm -f $(LATEXGENERATED)
>  	rm -f CodeSamples/snippets.d
>  	rm -f *.synctex*
> -- 
> 2.17.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-01 16:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01 15:14 [PATCH] Makefile: Keep perfbook-lt.tex in 'make clean' Akira Yokosawa
2020-04-01 16:07 ` Paul E. McKenney

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.