[Top][All Lists]

[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:

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

gives a result of:

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

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

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:


Message sent via Savannah

reply via email to

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