From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH] Makefile: Use implicit rules for various layout options
Date: Thu, 6 Oct 2016 22:07:41 -0700 [thread overview]
Message-ID: <20161007050741.GK23148@linux.vnet.ibm.com> (raw)
In-Reply-To: <a63bd961-2db3-3348-419f-5d96bf5a5d19@gmail.com>
On Fri, Oct 07, 2016 at 12:24:54AM +0900, Akira Yokosawa wrote:
> >From 9300942224fc8072cad9d6582858993c5efa5131 Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Thu, 6 Oct 2016 23:57:07 +0900
> Subject: [PATCH] Makefile: Use implicit rules for various layout options
>
> This commit replaces redundant rules for perfbook.pdf,
> perfbook-1c.pdf, and perfbook-hb.pdf with custom implicit rules.
> These implicit rules will also help when you want to add
> tentative rules to try some experimental layout option.
>
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Nice! Queued and pushed, thank you!
Thanx, Paul
> ---
> Makefile | 32 ++++++++------------------------
> 1 file changed, 8 insertions(+), 24 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 0207473..55361c3 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -9,6 +9,8 @@ LATEXSOURCES = \
>
> LATEXGENERATED = qqz.tex contrib.tex origpub.tex
>
> +PDFTARGETS := perfbook.pdf perfbook-1c.pdf perfbook-hb.pdf
> +
> EPSSOURCES_FROM_TEX := \
> SMPdesign/DiningPhilosopher5.eps \
> SMPdesign/DiningPhilosopher5TB.eps \
> @@ -65,14 +67,14 @@ all: $(targ)
>
> hb: perfbook-hb.pdf
>
> -perfbook.pdf: perfbook.bbl
> - sh utilities/runlatex.sh perfbook
> +$(PDFTARGETS): %.pdf: %.tex %.bbl
> + sh utilities/runlatex.sh $(basename $@)
>
> -perfbook.bbl: $(BIBSOURCES) perfbook.aux
> - bibtex perfbook
> +$(PDFTARGETS:.pdf=.bbl): %.bbl: $(BIBSOURCES) %.aux
> + bibtex $(basename $@)
>
> -perfbook.aux: $(LATEXSOURCES) $(LATEXGENERATED)
> - sh utilities/runfirstlatex.sh perfbook
> +$(PDFTARGETS:.pdf=.aux): $(LATEXSOURCES) $(LATEXGENERATED)
> + sh utilities/runfirstlatex.sh $(basename $@)
>
> perfbook_flat.tex: perfbook.tex $(LATEXSOURCES) $(PDFTARGETS_OF_EPS) $(PDFTARGETS_OF_SVG)
> echo > qqz.tex
> @@ -89,30 +91,12 @@ contrib.tex: perfbook_flat.tex qqz.tex
> origpub.tex: perfbook_flat.tex
> sh utilities/extractorigpub.sh < perfbook_flat.tex > origpub.tex
>
> -perfbook-1c.pdf: perfbook-1c.tex perfbook-1c.bbl
> - sh utilities/runlatex.sh perfbook-1c
> -
> perfbook-1c.tex: perfbook.tex
> sed -e 's/,twocolumn//' -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) $(LATEXGENERATED)
> - sh utilities/runfirstlatex.sh perfbook-1c
> -
> -perfbook-hb.pdf: perfbook-hb.tex perfbook-hb.bbl
> - 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
> -
> -perfbook-hb.aux: $(LATEXSOURCES) $(LATEXGENERATED)
> - sh utilities/runfirstlatex.sh perfbook-hb
> -
> # Rules related to perfbook_html are removed as of May, 2016
>
> $(EPSSOURCES_FROM_TEX): %.eps: %.tex
> --
> 2.7.4
>
prev parent reply other threads:[~2016-10-07 5:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-06 15:24 [PATCH] Makefile: Use implicit rules for various layout options Akira Yokosawa
2016-10-07 5:07 ` 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=20161007050741.GK23148@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.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.