All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Daniel P. Berrange" <berrange@redhat.com>,
	patches@linaro.org, qemu-trivial@nongnu.org,
	Stefan Weil <sw@weilnetz.de>,
	Markus Armbruster <armbru@redhat.com>,
	qemu-devel@nongnu.org, Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target
Date: Tue, 31 Jul 2012 17:49:03 +0200	[thread overview]
Message-ID: <5017FE6F.7090107@weilnetz.de> (raw)
In-Reply-To: <CAFEAcA9+32Y+q7p5H7JPvOucVU-3_s94wT7JtX0nz7e60tbTPA@mail.gmail.com>

Am 31.07.2012 17:00, schrieb Peter Maydell:
> On 31 July 2012 15:38, Daniel P. Berrange <berrange@redhat.com> wrote:
>> Isn't using 'find' somewhat overkill here really. QEMU only creates
>> .o and .d files in 2 levels of directory, so sure we can just avoid
>> find entirely
>>
>>    rm -f *.[od] */*.[od]
>
> That's exactly the bug this change is addressing (in a more
> general way than a couple of the proposed point fixes). There
> are subdirectories of hw/, so for instance we have a hw/usb/bus.o
> which your rm would not delete.
>
> -- PMM

Yes, QEMU creates files in 3 levels. We could use

     rm -f *.[od] */*.[od] */*/*.[od]

I suggest using the wrapper $(call quiet-command,...)
to suppress printing of all removed file names.

For me, your patch using find would also be sufficient.

Only developers use "make clean", and they should know
how to name files. Even if there are files with blanks
in their name, in most cases nothing bad will happen
(as long as they are not named "-rf .. .o" which would
be the worst scenario I can imagine).

Regards,
Stefan W.



WARNING: multiple messages have this Message-ID (diff)
From: Stefan Weil <sw@weilnetz.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: patches@linaro.org, qemu-trivial@nongnu.org,
	Stefan Weil <sw@weilnetz.de>,
	Markus Armbruster <armbru@redhat.com>,
	qemu-devel@nongnu.org, Jan Kiszka <jan.kiszka@siemens.com>,
	Stefan Hajnoczi <stefanha@gmail.com>
Subject: Re: [Qemu-devel] [PATCH] Makefile: Avoid explicit list of directories in clean target
Date: Tue, 31 Jul 2012 17:49:03 +0200	[thread overview]
Message-ID: <5017FE6F.7090107@weilnetz.de> (raw)
In-Reply-To: <CAFEAcA9+32Y+q7p5H7JPvOucVU-3_s94wT7JtX0nz7e60tbTPA@mail.gmail.com>

Am 31.07.2012 17:00, schrieb Peter Maydell:
> On 31 July 2012 15:38, Daniel P. Berrange <berrange@redhat.com> wrote:
>> Isn't using 'find' somewhat overkill here really. QEMU only creates
>> .o and .d files in 2 levels of directory, so sure we can just avoid
>> find entirely
>>
>>    rm -f *.[od] */*.[od]
>
> That's exactly the bug this change is addressing (in a more
> general way than a couple of the proposed point fixes). There
> are subdirectories of hw/, so for instance we have a hw/usb/bus.o
> which your rm would not delete.
>
> -- PMM

Yes, QEMU creates files in 3 levels. We could use

     rm -f *.[od] */*.[od] */*/*.[od]

I suggest using the wrapper $(call quiet-command,...)
to suppress printing of all removed file names.

For me, your patch using find would also be sufficient.

Only developers use "make clean", and they should know
how to name files. Even if there are files with blanks
in their name, in most cases nothing bad will happen
(as long as they are not named "-rf .. .o" which would
be the worst scenario I can imagine).

Regards,
Stefan W.

  reply	other threads:[~2012-07-31 15:49 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 13:01 [Qemu-trivial] [PATCH] Makefile: Avoid explicit list of directories in clean target Peter Maydell
2012-07-31 13:01 ` [Qemu-devel] " Peter Maydell
2012-07-31 13:25 ` [Qemu-trivial] " Stefan Hajnoczi
2012-07-31 13:25   ` [Qemu-devel] " Stefan Hajnoczi
2012-07-31 14:19 ` [Qemu-trivial] " Markus Armbruster
2012-07-31 14:19   ` Markus Armbruster
2012-07-31 14:21   ` [Qemu-trivial] " Peter Maydell
2012-07-31 14:21     ` Peter Maydell
2012-07-31 14:35     ` [Qemu-trivial] " Markus Armbruster
2012-07-31 14:35       ` Markus Armbruster
2012-07-31 14:38       ` [Qemu-trivial] " Daniel P. Berrange
2012-07-31 14:38         ` Daniel P. Berrange
2012-07-31 15:00         ` [Qemu-trivial] " Peter Maydell
2012-07-31 15:00           ` Peter Maydell
2012-07-31 15:49           ` Stefan Weil [this message]
2012-07-31 15:49             ` Stefan Weil
2012-07-31 15:51             ` [Qemu-trivial] " Peter Maydell
2012-07-31 15:51               ` Peter Maydell
2012-07-31 16:20               ` [Qemu-trivial] " Stefan Weil
2012-07-31 16:20                 ` Stefan Weil
2012-07-31 17:02                 ` [Qemu-trivial] " Blue Swirl
2012-07-31 17:02                   ` Blue Swirl
2012-07-31 14:24   ` [Qemu-trivial] " Eric Blake
2012-07-31 14:24     ` Eric Blake
2012-08-01 10:28     ` [Qemu-trivial] " Stefan Hajnoczi
2012-08-01 10:28       ` Stefan Hajnoczi

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=5017FE6F.7090107@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@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 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.