bug-make
[Top][All Lists]
Advanced

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

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


From: Paul D. Smith
Subject: [bug #63125] Automatic variables in Secondary Expansion don't work as documented
Date: Thu, 29 Sep 2022 13:50:15 -0400 (EDT)

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

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