[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.
- [bug #62706] Restrict second expansion to targets which are being built., Dmitry Goncharov, 2022/07/04
- [bug #62706] Restrict second expansion to targets which are being built., Dmitry Goncharov, 2022/07/05
- [bug #62706] Restrict second expansion to targets which are being built., Dmitry Goncharov, 2022/07/09
- [bug #62706] Restrict second expansion to targets which are being built., Paul D. Smith, 2022/07/09
- [bug #62706] Restrict second expansion to targets which are being built., Dmitry Goncharov, 2022/07/23
- [bug #62706] Restrict second expansion to targets which are being built., Dmitry Goncharov, 2022/07/23
- [bug #62706] Restrict second expansion to targets which are being built., Paul D. Smith, 2022/07/30