Current-Users archive

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

Re: bug in make?!?



At Tue, 18 Nov 2008 21:22:13 +0100,
Quentin Garnier wrote:
> 
> On Tue, Nov 18, 2008 at 03:30:49PM -0400, Marko Schütz wrote:
> > Dear All,
> > 
> > I think I may have found a bug in make. 
> > 
> > With the attached test.mk and a subdirectory containing a file test.c
> > I would expect the output 
> > 
> >   dependency rule finds test/test.c on . /home/marko/tmp test
> >   "exists" finds test.c on . /home/marko/tmp test
> > 
> > instead the resulting output is
> > 
> >   dependency rule finds test/test.c on . /home/marko/tmp test
> >   "exists" does not find test.c on . /home/marko/tmp test
> > 
> > Am I missing something here?
> 
> I'm not sure why you expect a .if test, which has to be evaluated at
> parsing time, to be of any use with a variable whose value is set at
> target evaluation time.

Of course. I can't recall why I was thinking that...

Thanks,

Marko

Attachment: pgpqewjucCSiI.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index