Discussions of the Parallel Programming book
 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 1/2] Makefile: Automate OBSOLETE_FILES definition
Date: Mon, 14 Jan 2019 16:30:06 -0800	[thread overview]
Message-ID: <20190115003006.GW1215@linux.ibm.com> (raw)
In-Reply-To: <91c8ec61-e42c-9768-150f-39db5ac2280d@gmail.com>

On Tue, Jan 15, 2019 at 07:24:22AM +0900, Akira Yokosawa wrote:
> >From 96dd811c7e084d97cbf4ef3b4b3f68099f6e15eb Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Tue, 15 Jan 2019 07:10:15 +0900
> Subject: [PATCH 1/2] Makefile: Automate OBSOLETE_FILES definition
> 
> Commit 2da175371873 ('defer/rcu: Rework "Introduction to RCU"')
> obsoleted .eps files used to be generated from the removed .fig
> files. Instead of manually updating the variable in Makefile,
> automate the definition of OBSOLETE_FILES for replacements of
> ".fig -> .svg".
> 
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>

Nice automation!  I queued and pushed this plus the .gitignore update,
thank you!!!

							Thanx, Paul

> ---
>  Makefile | 13 ++++++++-----
>  1 file changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 79ccd99..b76eea0 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -12,7 +12,6 @@ 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
>  
> @@ -32,6 +31,12 @@ FIGSOURCES := $(wildcard */*.fig) $(wildcard */*/*.fig)
>  
>  EPSSOURCES_FROM_FIG := $(FIGSOURCES:%.fig=%.eps)
>  
> +SVGSOURCES := $(wildcard */*.svg)
> +FAKE_EPS_FROM_SVG := $(SVGSOURCES:%.svg=%.eps)
> +PDFTARGETS_OF_SVG := $(SVGSOURCES:%.svg=%.pdf)
> +
> +OBSOLETE_FILES = extraction $(FAKE_EPS_FROM_SVG)
> +
>  EPSSOURCES_DUP := \
>  	$(wildcard */*.eps) \
>  	$(wildcard */*/*.eps) \
> @@ -51,9 +56,6 @@ PDFTARGETS_OF_EPSOTHER := $(filter-out $(PDFTARGETS_OF_EPSORIG),$(PDFTARGETS_OF_
>  
>  BIBSOURCES := bib/*.bib alphapf.bst
>  
> -SVGSOURCES := $(wildcard */*.svg)
> -PDFTARGETS_OF_SVG := $(SVGSOURCES:%.svg=%.pdf)
> -
>  DOT := $(shell which dot 2>/dev/null)
>  FIG2EPS := $(shell which fig2eps 2>/dev/null)
>  A2PING := $(shell which a2ping 2>/dev/null)
> @@ -294,8 +296,9 @@ 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) $(OBSOLETE_FILES)
> +	rm -f $(LATEXGENERATED)
>  	rm -f CodeSamples/snippets.mk CodeSamples/snippets.d
> +	@rm -f $(OBSOLETE_FILES)
>  
>  distclean: clean
>  	sh utilities/cleanpdf.sh
> -- 
> 2.7.4
> 


      parent reply	other threads:[~2019-01-15  0:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-14 22:24 [PATCH 1/2] Makefile: Automate OBSOLETE_FILES definition Akira Yokosawa
2019-01-14 22:25 ` [PATCH 2/2] datastruct/hash: Don't track hash_resize_s Akira Yokosawa
2019-01-15  0:30 ` 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=20190115003006.GW1215@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox