Follow-up Comment #2, bug #62706 (project make):
This is a more detailed description of point 2 above (2. Causes all
prerequisites to be second expanded in the same order they are being built.)
$ cat makefile
.SECONDEXPANSION:
all: hello.tsk bye.tsk
hello.tsk: $$(info 2nd expansion of prereq
On Tue, Jul 5, 2022 at 12:34 PM Edward Welbourne wrote:
> 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.
That's correct. $$(info 2nd expansio
On Tue, Jul 5, 2022 at 5:19 AM Edward Welbourne 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.
On Tue, Jul 5, 2022 at 5:19 AM Edward Welbourne wrote:
> I would have expected the order to be the exact reverse of the
> order of building:
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 $$@);
Dmitry Goncharov (5 July 2022 01:42) wrote (inter alia):
> 2. Causes all prerequisites to be second expanded in the same order
> they are being built.
Really ? I would have expected the order to be the exact reverse of the
order of building:
src = main.c
hdr = lib.h
prog: $$(src); $(CC) -o $@ $<