Here's an example makefile that doesn't do what I want. name := I have a space/x
worse: @echo input is $(name) @echo output is $(notdir $(name)) # I see # input is I have a space/x # output is I have a x # But I wish I'd have seen # input is I have a space/x # output is x At first, I thought this behavior was a bug, but then I realized that it's working exactly as specified: notdir treats its argument as a _whitespace-separated_ list of file names. That makes it difficult to deal with file names that themselves contains spaces. Is there a way to do it? -- ... at a contemporary beefsteak it is unusual for a man to do away with more than six pounds of meat and thirty glasses of beer. -- Joseph Mitchell _______________________________________________ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make