In gnu make: In a string, strip file paths from file names?
Ken <[email protected]> Wed, 17 Jun 2009 14:57:55 -0700 (PDT)
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <d0442685-e06a-48d3-8c25-8c372635d8bb@t16g2000yqi.googlegroups.com> |
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". Anyone know how to do that? I looked at the gnu string manipulation functions, but none seemed to be the answer. Thanks! Ken