bugmake - Bugs: bug #10708, target names are canonicalized (./...

 
 

bug #10708: target names are canonicalized (./ removed, etc.)

Submitter:  None
Submitted:  Sun 17 Oct 2004 11:08:52 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  3.80 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 Jan 2017 08:55:40 PM UTC, comment #2: 

See also bug #17230

Paul D. Smith <psmith>
Group administrator
Tue 19 Oct 2004 08:46:20 PM UTC, comment #1: 


> So, do you think that if make finds the 'from' pattern doesn't match the 'text', it could check if 'from' begins with './', remove it, and try again?


Umm... no.  Ugh! :-).

However, I do agree that this should probably work better.  $@, etc. should probably always be the exact target name, without any of the internal translations performed.  I'll have to think about that more first though.

For the time being you can work around this by using something like:

 ./foo: ; @echo $(patsubst %,%bar,$(notdir $@))

(obviously I'm assuming that your real pattern substitution is more complex; if not you can just use:

 ./foo: ; @echo $(notdir $@)bar

Paul D. Smith <psmith>
Group administrator
Sun 17 Oct 2004 11:08:52 AM UTC, original submission:  

Since make removes leading './'s from target names, it sometimes breaks subst. Example:

./foo:
@echo $(@:./%=%bar)

This will print 'foo' instead of the expected 'foobar'.

So, do you think that if make finds the 'from' pattern doesn't match the 'text', it could check if 'from' begins with './', remove it, and try again? Please and thank you!

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

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    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
    2005-03-01 psmith Summarysubst quirk with targets target names are canonicalized (./ removed, etc.)

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code