bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using $(eval) to get information at the time a target is invoked


From: Paul Smith
Subject: Re: Using $(eval) to get information at the time a target is invoked
Date: Fri, 07 Jan 2011 21:58:53 -0500

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 address@hidden 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 <address@hidden>          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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]