bug-make
[Top][All Lists]
Advanced

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

[bug #28456] Expansion of $$< is incorrect


From: Paul D. Smith
Subject: [bug #28456] Expansion of $$< is incorrect
Date: Mon, 2 Jan 2023 14:29:04 -0500 (EST)

Update of bug #28456 (project make):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 
           Fixed Release:                    None => 4.3                    

    _______________________________________________________

Follow-up Comment #9:

The fix for the target value appearing in $< is in GNU make 4.3.

I believe that the manual documentation of these variables is correct as of
GNU make 4.4, although the behavior is not what some here are asking for: we
don't recompute prerequisite variables after each word is expanded, we only
recompute when a new rule is encountered.  So this:

.SECONDEXPANSION:
foo.2: foo.1 $$(info [$$<] [$$@]) ; : $@ Success

gives a result of:

[] [foo.2]
: foo.2 Success

(the value of $$< is empty) while this:

.SECONDEXPANSION:
foo.2: foo.1
foo.2: $$(info [$$<] [$$@]) ; : $@ Success

gives a result of:

[foo.1] [foo.2]
: foo.2 Success

(the value if $$< is foo.1 because it was in a previous rule)



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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