From: Yuval Shaia <yuval.shaia@oracle.com>
To: Eric Blake <eblake@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3] qapi: Reduce Makefile boilerplate
Date: Thu, 22 Nov 2018 13:26:12 +0200 [thread overview]
Message-ID: <20181122112611.GB8920@lap1> (raw)
In-Reply-To: <20181116200016.2080785-1-eblake@redhat.com>
On Tue, Nov 20, 2018 at 01:17:28PM +0200, Eric Blake wrote:
> Adding a new qapi module had some rather tedious repetition to
> wire it into Makefile, Makefile.objs, and .gitignore (for example,
> see commit bf42508f and its followup b61acdec). For make, add some
> indirection by taking advantage of GNU Make string processing to
> expand a list of module names into all the required artifacts, so
> that future additions of a new module need only touch the list of
> module names. And for gitignore, use globs to cover all generated
> file names.
>
> The list has to live in Makefile.objs, due to the way that
> our unnest-vars macro slirps in that file without remembering
> any definition of $(QAPI_MODULES) from Makefile.
>
> Signed-off-by: Eric Blake <eblake@redhat.com>
> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
> Reviewed-by: Markus Armbruster <armbru@redhat.com>
> ---
> v3: also tweak .gitignore [Dan]
> v2: also condense Makefile.objs, prefer $(FOO:%=a%b) over
> $(patsubst %,a%b,$(FOO))
> ---
Used it to integrate a new QMP message for pvrdma device and it indeed
makes effort minimal.
So:
Tested-by: Yuval Shaia <yuval.shaia@oracle.com>
Thanks,
Yuval
> Makefile | 192 ++++++--------------------------------------------
> Makefile.objs | 75 ++------------------
> .gitignore | 72 ++-----------------
> 3 files changed, 34 insertions(+), 305 deletions(-)
>
next prev parent reply other threads:[~2018-11-22 11:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-16 20:00 [Qemu-devel] [PATCH v3] qapi: Reduce Makefile boilerplate Eric Blake
2018-11-19 10:42 ` Daniel P. Berrangé
2018-11-19 13:10 ` Markus Armbruster
2018-11-22 11:26 ` Yuval Shaia [this message]
2018-11-22 12:20 ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
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=20181122112611.GB8920@lap1 \
--to=yuval.shaia@oracle.com \
--cc=eblake@redhat.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).