All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH v2] Makefile: Add recipe to remove obsolete intermediate files
Date: Wed, 12 Dec 2018 10:45:55 -0800	[thread overview]
Message-ID: <20181212184555.GA4170@linux.ibm.com> (raw)
In-Reply-To: <398dbc5f-7e83-cc5a-0029-b6125fba8f1b@gmail.com>

On Wed, Dec 12, 2018 at 08:27:15PM +0900, Akira Yokosawa wrote:
> >From 33b506548ce3b09cbf7a7e4e8bf1a80496dd9e1a Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Wed, 12 Dec 2018 20:11:21 +0900
> Subject: [PATCH v2] Makefile: Add recipe to remove obsolete intermediate files
> 
> Commit 3ab5541f7404 ("intro: Add containers and hypervisor to
> "iron triangle" diagram") replaced intro/PPGrelation.fig with
> intro/PPGrelation.svg.  Left-over intermediate file
> intro/PPGrelation.eps causes duplicated targets in the Makefile.
> 
> Therefore, add a list OBSOLETE_FILES in the Makefile and exclude
> such files from EPSSOURCES.
> 
> Add "extraction" to the list since it was once an empty target
> and obsolete now.
> 
> "make clean" will remove those files.
> 
> Also remove PPGrelation.eps from intro/.gitignore.
> 
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> ---
> Hi Paul,
> 
> This is an improved update.
> 
> v1 -> v2:
> 
> o   To prevent warning of "make" even if the obsolete .eps file
>     exists, exclude OBSOLETE_FILES from EPSSOURCES.
> 
> o   "extraction" is also obsolete, so add it to OBSOLETE_FILES.
> 
>         Thanks, Akira

Queued and pushed, and it did get rid of my intro/PPGrelation.eps.  ;-)
Thank you!

							Thanx, Paul

> --
>  Makefile         | 6 +++---
>  intro/.gitignore | 1 -
>  2 files changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index c928c80..79ccd99 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -12,6 +12,7 @@ LATEXSOURCES = \
>  	*/*/*.tex
>  
>  LATEXGENERATED = autodate.tex qqz.tex contrib.tex origpub.tex
> +OBSOLETE_FILES = intro/PPGrelation.eps extraction
>  
>  ABBREVTARGETS := tcb 1c hb msns mss mstx msr msn msnt 1csf
>  
> @@ -38,7 +39,7 @@ EPSSOURCES_DUP := \
>  	$(EPSSOURCES_FROM_DOT) \
>  	$(EPSSOURCES_FROM_FIG)
>  
> -EPSSOURCES := $(sort $(EPSSOURCES_DUP))
> +EPSSOURCES := $(sort $(filter-out $(OBSOLETE_FILES),$(EPSSOURCES_DUP)))
>  
>  PDFTARGETS_OF_EPS := $(EPSSOURCES:%.eps=%.pdf)
>  
> @@ -293,8 +294,7 @@ clean:
>  		-o -name '*.qqz' -o -name '*.toc' -o -name '*.bbl' \
>  		-o -name '*.fcv' -o -name '*.ltms' | xargs rm -f
>  	rm -f perfbook_flat.tex perfbook*.out perfbook-*.tex
> -	rm -f $(LATEXGENERATED)
> -	rm -f extraction
> +	rm -f $(LATEXGENERATED) $(OBSOLETE_FILES)
>  	rm -f CodeSamples/snippets.mk CodeSamples/snippets.d
>  
>  distclean: clean
> diff --git a/intro/.gitignore b/intro/.gitignore
> index c29b706..cffadec 100644
> --- a/intro/.gitignore
> +++ b/intro/.gitignore
> @@ -1,4 +1,3 @@
>  FourTaskCategories.eps
>  FourTaskOrder.eps
>  Generality.eps
> -PPGrelation.eps
> -- 
> 2.7.4
> 
> 


      reply	other threads:[~2018-12-12 18:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-11 22:46 [PATCH] Makefile: Add recipe to remove obsolete intermediate files Akira Yokosawa
2018-12-12 11:27 ` [PATCH v2] " Akira Yokosawa
2018-12-12 18:45   ` Paul E. McKenney [this message]

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=20181212184555.GA4170@linux.ibm.com \
    --to=paulmck@linux.ibm.com \
    --cc=akiyks@gmail.com \
    --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.