[Top][All Lists]

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

Re: deferred evaulation of function calls

From: Paul D. Smith
Subject: Re: deferred evaulation of function calls
Date: Thu, 27 May 2004 15:04:29 -0400

%% "Robert P. J. Day" <address@hidden> writes:

  >> If you modify the contents of a directory "behind make's back" then
  >> things like wildcard, etc. may not work properly since they operate on
  >> the cached version not the real directory contents.

  rpjd> ah, so what this tells me is that, if i want to match a wildcard
  rpjd> pattern and i use the wildcard() function, there really is no
  rpjd> effective difference if i do that at the top of my makefile with
  rpjd> either of:

Hm.  Really, it's not that determinant... it depends on when the caching
is done.  Unfortunately.  The directory cache is a big time savings but
it also leads to a lot of non-intuitive behavior.  I'm more and more
ambivalent about it.

You can always use:

    files := $(shell echo *o)

if you want to be sure you're getting what's _really_ in the directory.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "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]