On Fri, 2011-01-07 at 20:46 -0500, Hsu, Shihchieh IAS wrote: > Summary: Using $(eval) to get information at the time a target is > invoked, but instead information gotten is when “make” is invoked. > > Problem occurs for make3.81 and make 3.82 on Windows XP
It works fine for me on Linux, after I fixed your typo: > 01/05/2011 11:31 AM 0 Hello.c > > clean: > del hello.c I realize that maybe this doesn't matter on Windows where the filesystem is not case-sensitive, but of course on Linux if you delete "hello.c" that won't have any impact on "Hello.c" which is why "Hello.c" still exists after the "rm". In your second example, with the subdirectory, you get the cases the same: > A makefile (makefile_sav) looking for files under a subfolder <test> > works: (<test> contains hello.c and world.c files) > > clean: > del test\hello.c and it works. I don't know enough about Windows to say if this case difference really matters, but you might try that. Please post a message on the make-...@gnu.org mailing list if you can't figure it out: the folks on that list are a lot more knowledgeable about make running on DOS/Windows platforms. -- ------------------------------------------------------------------------------- Paul D. Smith <psm...@gnu.org> Find some GNU make tips at: http://www.gnu.org http://make.mad-scientist.net "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make