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
: foo.2
: foo.1
: '<=foo.2' '+=foo.2 foo.1 foo.2'

$ make-3.81
: foo.2
: foo.1
: '<=foo.2' '+=foo.2 foo.1'

Note how here, GNU make 4.3 does the right thing by expanding $$< to the
correct value of $<, *foo.2*, and adding that to the prerequisites list.

But, GNU make 3.81 doesn't even add the wrong thing here: it adds nothing.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63125>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to