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

 
 

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

Submitted by:  None
Submitted on:  Sun 17 Oct 2004 11:08:52 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.80Operating 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.

 

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

See also bug #17230

Paul D. Smith <psmith>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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
    Tue 01 Mar 2005 02:04:14 AM UTCpsmithSummarysubst quirk with targets=>target names are canonicalized (./ removed, etc.)

    Back to the top


    Powered by Savane 3.1-cleanup1