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

 
 

bug #2824: Add $(vpath) function

Submitter:  None
Submitted:  Fri 14 Mar 2003 02:41:52 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  None Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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 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.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2004-10-06 psmith Carbon-Copy- Added stefan --DOT-- becker --AT-- nokia --DOT-- com

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code