[bug #63125] Automatic variables in Secondary Expansion don't work as documented

2022-10-15 Thread Paul D. Smith
Update of bug #63125 (project make): Item Group: Bug => Enhancement ___ Follow-up Comment #6: I'm going to change this into an enhancement, to figure out how to make this comprehensible and "do

[bug #63125] Automatic variables in Secondary Expansion don't work as documented

2022-09-29 Thread Riccardo P. Bestetti
Follow-up Comment #5, bug #63125 (project make): Ok, this is very clear to me now. Thank you for your examples. ___ Reply to this item at: ___ Message s

[bug #63125] Automatic variables in Secondary Expansion don't work as documented

2022-09-29 Thread Paul D. Smith
Follow-up Comment #4, bug #63125 (project make): Interestingly, if you switch the $$< to the other prerequisite then the newer releases do the _right_ thing (completely), and GNU make 3.81 expands to empty: $ cat Makefile .SECONDEXPANSION: foo: foo.1 $$< foo: foo.2 ; : '<=$<' '+=$+' $ make-4.3

[bug #63125] Automatic variables in Secondary Expansion don't work as documented

2022-09-29 Thread Paul D. Smith
Follow-up Comment #3, bug #63125 (project make): > Well, it did work that way on Make 3.81. It did _something_ in GNU make 3.81, but it wasn't the _right_ thing. I tried to show this in my previous answer but I was not very clear about it, sorry about that. Consider this output, without .SECONDE

[bug #63125] Automatic variables in Secondary Expansion don't work as documented

2022-09-28 Thread Riccardo P. Bestetti
Follow-up Comment #2, bug #63125 (project make): [comment #1 comment #1:] > Also, recall that $^ shows a set of prerequisites that does NOT include duplicates. If you want to see the full set of prerequisites including duplicates, you need to use $+. So sorry - my testing, and the output that is

[bug #63125] Automatic variables in Secondary Expansion don't work as documented

2022-09-28 Thread Paul D. Smith
Follow-up Comment #1, bug #63125 (project make): A result of *foo.1* is definitely not right. The value of *$<* is always set to the first prerequisite in the rule definition which provides the recipe, if there is one. Only if there isn't a prerequisite listed in the rule itself will you get the

[bug #63125] Automatic variables in Secondary Expansion don't work as documented

2022-09-28 Thread Riccardo P. Bestetti
URL: Summary: Automatic variables in Secondary Expansion don't work as documented Project: make Submitter: vmsh0 Submitted: Wed 28 Sep 2022 08:24:02 PM UTC Severity: 3 - Normal