bugmake - Bugs: bug #940, target specific variables only...

 
 

bug #940: target specific variables only apply to first of multiple target rules

Submitter:  None
Submitted:  Mon 05 Aug 2002 11:06:23 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.79.1 Operating System:  Any
Fixed Release:  3.80 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 17 Sep 2002 07:17:03 PM UTC, comment #1: 

I fixed this bug, and found another related bug--and fixed that too.  Fixes will be in the next version of GNU make.
Thanks for the report.

Paul D. Smith <psmith>
Group administrator
Mon 05 Aug 2002 11:06:23 AM UTC, original submission:  

If you have a makefile like this

TARGET = foo
$(TARGET): CFLAGS=-g

$(TARGET):: makefile

$(TARGET):: foo.o

Then debug output from make shows that the target specific variable gets applied to the dependency on the makefile, but does not get applied to the dependency on foo.o

In my example, I just reversed the multiple dependency lines, but there could be instances where you want the variable to apply to both.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2002-10-04 psmith Fixed Release4.0 None
2002-09-17 psmith StatusNone None
    Assigned toNone None
    Open/ClosedOpen None
    Operating SystemPOSIX-Based None
    Fixed ReleaseNone None

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code