[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #17245] $(notdir foo/) should return . instead of blank
From: |
Jun Chen |
Subject: |
[bug #17245] $(notdir foo/) should return . instead of blank |
Date: |
Sun, 31 Dec 2006 01:54:41 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; zh-CN; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 |
Follow-up Comment #1, bug #17245 (project make):
Well, if you need such functionality, you can write your own function:
====
MyNotDir_1 = $(if $(patsubst %/,,$1),$(notdir $1),.)#OK
MyNotDir = $(foreach v,$1,$(call MyNotDir_1,$v))
====
Now, MyNotDir acts as you expect.
I've tested it on make 3.80 & make 3.81.
Of course, GNUmake should better add a new internal function for this, so
that users like you don't have to bother adding his own functions.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?17245>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #17245] $(notdir foo/) should return . instead of blank,
Jun Chen <=