From: Michal Privoznik <mprivozn@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, Stefan Weil <sw@weilnetz.de>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
Peter Maydell <peter.maydell@linaro.org>,
Thomas Huth <thuth@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] Makefile: Properly order build targets 'all' and 'check'
Date: Thu, 25 Jun 2015 11:13:25 +0200 [thread overview]
Message-ID: <558BC635.1010602@redhat.com> (raw)
In-Reply-To: <87h9pwxo2a.fsf@blackfin.pond.sub.org>
On 25.06.2015 09:08, Markus Armbruster wrote:
> Stefan Weil <sw@weilnetz.de> writes:
>
>> Am 23.06.2015 um 19:31 schrieb Peter Maydell:
>>> On 23 June 2015 at 14:35, Michal Privoznik <mprivozn@redhat.com> wrote:
>>>> Yeah, that could work too. For some reason I thought that having it
>>>> there would result in making 'all' just under tests/. But Now that I
>>>> tried it out it works just nicely.
>>> Have you tested both "build in the source tree" and "build in
>>> a separate directory from the source tree", by the way?
>>>
>>> thanks
>>> -- PMM
>>
>> Both will work, as the modification only adds a dependency.
>>
>> Do we care that running "make check" will take longer with this
>> patch? Make needs some time to check all dependencies for
>> "all", even if nothing has to be done.
>
> If this bothers us, we could try making it an order-only prerequisite:
>
> check: | all
I'm not sure this is the right approach. What is there to check if
nothing has been built? I think this dependency is not order-only. It
should be a real dependency.
>
> https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html
>
>> I feel a little bit uneasy with something depending on all.
>> Maybe some day we'll want to include check in the default
>> build. Then all would depend on check which depends on
>
> I agree that depending on the default goal (here: all) isn't nice.
>
>> all which depends on check and so on. An intermediate
>> make target could solve that:
>>
>> all: full-build
>> check: full-build
>> full-build: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all modules
Well, if we ever do that, it can be done this way. Or any other way that
would be applicable to the code in the future.
Michal
WARNING: multiple messages have this Message-ID (diff)
From: Michal Privoznik <mprivozn@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, Stefan Weil <sw@weilnetz.de>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
Peter Maydell <peter.maydell@linaro.org>,
Thomas Huth <thuth@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] Makefile: Properly order build targets 'all' and 'check'
Date: Thu, 25 Jun 2015 11:13:25 +0200 [thread overview]
Message-ID: <558BC635.1010602@redhat.com> (raw)
In-Reply-To: <87h9pwxo2a.fsf@blackfin.pond.sub.org>
On 25.06.2015 09:08, Markus Armbruster wrote:
> Stefan Weil <sw@weilnetz.de> writes:
>
>> Am 23.06.2015 um 19:31 schrieb Peter Maydell:
>>> On 23 June 2015 at 14:35, Michal Privoznik <mprivozn@redhat.com> wrote:
>>>> Yeah, that could work too. For some reason I thought that having it
>>>> there would result in making 'all' just under tests/. But Now that I
>>>> tried it out it works just nicely.
>>> Have you tested both "build in the source tree" and "build in
>>> a separate directory from the source tree", by the way?
>>>
>>> thanks
>>> -- PMM
>>
>> Both will work, as the modification only adds a dependency.
>>
>> Do we care that running "make check" will take longer with this
>> patch? Make needs some time to check all dependencies for
>> "all", even if nothing has to be done.
>
> If this bothers us, we could try making it an order-only prerequisite:
>
> check: | all
I'm not sure this is the right approach. What is there to check if
nothing has been built? I think this dependency is not order-only. It
should be a real dependency.
>
> https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html
>
>> I feel a little bit uneasy with something depending on all.
>> Maybe some day we'll want to include check in the default
>> build. Then all would depend on check which depends on
>
> I agree that depending on the default goal (here: all) isn't nice.
>
>> all which depends on check and so on. An intermediate
>> make target could solve that:
>>
>> all: full-build
>> check: full-build
>> full-build: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all modules
Well, if we ever do that, it can be done this way. Or any other way that
would be applicable to the code in the future.
Michal
next prev parent reply other threads:[~2015-06-25 9:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-23 12:30 [Qemu-trivial] [PATCH] Makefile: Properly order build targets 'all' and 'check' Michal Privoznik
2015-06-23 12:30 ` [Qemu-devel] " Michal Privoznik
2015-06-23 12:37 ` [Qemu-trivial] " Peter Maydell
2015-06-23 12:37 ` Peter Maydell
2015-06-23 12:42 ` [Qemu-trivial] " Michal Privoznik
2015-06-23 12:42 ` Michal Privoznik
2015-06-23 12:49 ` [Qemu-trivial] " Thomas Huth
2015-06-23 12:49 ` Thomas Huth
2015-06-23 13:35 ` [Qemu-trivial] " Michal Privoznik
2015-06-23 13:35 ` Michal Privoznik
2015-06-23 17:29 ` [Qemu-trivial] " Michael Tokarev
2015-06-23 17:29 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2015-06-23 17:31 ` [Qemu-trivial] [Qemu-devel] " Peter Maydell
2015-06-23 17:31 ` Peter Maydell
2015-06-23 17:46 ` [Qemu-trivial] " Stefan Weil
2015-06-23 17:46 ` Stefan Weil
2015-06-25 7:08 ` [Qemu-trivial] " Markus Armbruster
2015-06-25 7:08 ` Markus Armbruster
2015-06-25 9:13 ` Michal Privoznik [this message]
2015-06-25 9:13 ` Michal Privoznik
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=558BC635.1010602@redhat.com \
--to=mprivozn@redhat.com \
--cc=armbru@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=sw@weilnetz.de \
--cc=thuth@redhat.com \
/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.