From: Eric Blake <eblake@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>, qemu-devel@nongnu.org
Cc: famz@redhat.com
Subject: Re: [Qemu-devel] [PATCH] build-sys: generate tests/.gitignore
Date: Tue, 5 Sep 2017 15:43:51 -0500 [thread overview]
Message-ID: <ad2f5f05-254e-fc58-41e5-5128d830eb2f@redhat.com> (raw)
In-Reply-To: <20170904090310.22530-1-marcandre.lureau@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1403 bytes --]
On 09/04/2017 04:03 AM, Marc-André Lureau wrote:
> tests/.gitignore is often out of date. Let's generate it based on the
> files and directories to clean.
In fact, it got out-of-date again with the recent cbb6540.
>
> Note: I didn't succeed yet at generalizing this approach for the rest
> of qemu .gitignore files, but I hope it may eventually happen.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> Makefile | 7 +++-
> tests/.gitignore | 97 ----------------------------------------------
> tests/Makefile.include | 39 +++++++++++++++++--
> tests/migration/.gitignore | 2 -
> 4 files changed, 41 insertions(+), 104 deletions(-)
> delete mode 100644 tests/.gitignore
> delete mode 100644 tests/migration/.gitignore
>
> @@ -14,6 +14,11 @@ ifneq ($(wildcard config-host.mak),)
> all:
> include config-host.mak
>
> +.PHONY: gitignore
> +ifneq ($(filter-out $(UNCHECKED_GOALS),$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail))
> +all $(MAKECMDGOALS): gitignore
> +endif
As others have mentioned, can we make this conditional on being an
in-tree build, so that a VPATH build isn't modifying non-local files
(after all, .gitignore only matters for an in-tree build)?
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]
prev parent reply other threads:[~2017-09-05 20:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-04 9:03 [Qemu-devel] [PATCH] build-sys: generate tests/.gitignore Marc-André Lureau
2017-09-04 10:20 ` Thomas Huth
2017-09-05 10:42 ` Marc-André Lureau
2017-09-05 20:49 ` Eric Blake
2017-09-06 6:27 ` Markus Armbruster
2017-09-06 5:05 ` Thomas Huth
2017-09-05 20:43 ` Eric Blake [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=ad2f5f05-254e-fc58-41e5-5128d830eb2f@redhat.com \
--to=eblake@redhat.com \
--cc=famz@redhat.com \
--cc=marcandre.lureau@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).