[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: In gnu make: In a string, strip file paths from file names?
From: |
Ken |
Subject: |
Re: In gnu make: In a string, strip file paths from file names? |
Date: |
Fri, 19 Jun 2009 08:15:05 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Jun 18, 1:32 am, Ralf Wildenhues <Ralf.Wildenh...@gmx.de> wrote:
> Hello Ken,
>
> * Ken wrote on Wed, Jun 17, 2009 at 11:57:55PM CEST:
>
> > I have a string variable in my make file that is set to several file
> > names. The names include the file paths, e.g., "../file.cpp ../../
> > file2.cpp ../DIR/file3.cpp". In my make file, I need to convert that
> > to a string of just the file names, e.g., "file.cpp file2.cpp
> > file3.cpp".
>
> Try $(notdir ../file.cpp ../../file2.cpp ../DIR/file3.cpp).
>
> Cheers,
> Ralf
Just what I needed. Thanks!