From: Earnie B. <ea...@us...> - 2007-09-30 19:11:14
|
Quoting Earnie Boyd <ea...@us...>: > > > Quoting Keith Marshall <kei...@us...>: > >> On Sun, 2007-09-30 at 00:52 -0400, Earnie Boyd wrote: >>> So if you change ``%.txt: %.app'' from a previous example to >>> ``%.txt: %.[Aa][Pp][Pp]'' it should do what you want and find >>> myfile.app or file MYFILE.APP or other combinations. >> >> That's one of the "solutions" you proposed, long time ago, when this >> problem first arose for me; IT DOESN'T WORK! >> > > The correct way to write it is: > > %.txt: $(wildcard %.[Aa][Pp][Pp]) > ... > > and then it works. > I take it back. This doesn't work as expected. The only method I found that works correctly is: mycommands = \ command 1; \ command 2; \ command ...; %.txt: %.app $(mycommands) %.txt: %.APP $(mycommands) I realized that this is not case sensitive by any means. I see Keith's need for the case insensitive pattern but I still don't think making the tool case insensitive in all cases is the correct thing. Earnie |