bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #62706] Restrict second expansion to targets which are being bu


From: Edward Welbourne
Subject: Re: [bug #62706] Restrict second expansion to targets which are being built.
Date: Tue, 5 Jul 2022 16:34:29 +0000

On Tue, Jul 5, 2022 at 5:19 AM Edward Welbourne <edward.welbourne@qt.io> wrote:
>>  I would have expected the order to be the exact reverse of the
>> order of building:

Dmitry Goncharov (5 July 2022 14:29) replied:
> i guess, an example will make it more clear.
>
> $ cat makefile
> .SECONDEXPANSION:
> all: hello.tsk bye.tsk
> hello.tsk: $$(info 2nd expansion of prereqs of $$@); $(info $@)
> bye.tsk: $$(info 2nd expansion of prereqs of $$@); $(info $@)

ah, right - between prerequisites at a given depth, second-expansion now
happens in the same order as execution of their rules, fair enough.  I
was thinking of the fact that, if you'd started with

all: $$(info 2nd expansion for all) hello.tsk bye.tsk; echo built both

then its info would appear first, although its rule would be run last.
I suppose that's unchanged by this patch, though,

        Eddy.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]