bugmake - Bugs: bug #2824, Add $(vpath) function

 
 

bug #2824: Add $(vpath) function

Submitted by:  None
Submitted on:  Fri 14 Mar 2003 02:41:52 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: NoneOperating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 15 Mar 2003 07:40:07 PM UTC, comment #1:

Suggested patch 1269, see

<http://savannah.gnu.org/patch/index.php?func=detailpatch&patch_id=1269&group_id=71>

mailto:Stefan.Becker@nokia.com

Anonymous
Fri 14 Mar 2003 02:41:52 PM UTC, original submission:

Consider this simplified example:

VPATH = src

target : source1 source2
cmd -opt source2 -otheropt $< -o $@

and source1/2 are both under directory "src". Everything is fine for $<, $^ and $+, because they know about $(VPATH). But not so for "source2" in the commnand line:

bash-2.05b$ gmake -n target
cmd -opt source2 -otheropt src/source1 -o target

Currently you have to write something like this to get what you want:

cmd -opt $(filter %source2,$^) -otheropt $< -o $@

bash-2.05b$ gmake -n target
cmd -opt src/source2 -otheropt src/source1 -o target

It would be nice and safer to have a $(vpath) function instead which would allow $(VPATH) support for any argument, e.g.

cmd -opt $(vpath source2) -otheropt $< -o $@

mailto:Stefan.Becker@nokia.com

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Wed 06 Oct 2004 02:40:01 PM UTCpsmithCarbon-Copy-=>Added stefan --DOT-- becker --AT-- nokia --DOT-- com

Back to the top


Powered by Savane 3.1-cleanup1