On 2009-06-17 22:06Z, Ken Klein wrote:
> I have a string variable in my make file that is set to several
> file names seperated by spaces. The names include the file paths,
> e.g., "../file.cpp .../../file2.cpp ../DIR/file3.cpp". In my
> makefile, 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.
files := ../file.cpp .../../file2.cpp ../DIR/file3.cpp
.PHONY: all
all:
@echo $(notdir $(files))
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make