"Paul D. Smith" wrote:
> 
> %% "Johan Bezem" <[EMAIL PROTECTED]> writes:
> 
>   jb> this seems to be by design, to overcome the fact that
> 
>   jb>   OBJECTS = *.o
> 
>   jb> doesn't expand the list, whereas
> 
>   jb>   OBJECTS = $(wildcard *.o)
> 
>   jb> does. $(wildcard is expanded upon the first pass over the
>   jb> makefile, ie. when no rules have been executed yet;
> 
> This is not true... or at least not in the above case.
> 
> The $(wildcard ...) function is expanded using exactly the same rules as
> make variables and the other functions: there are _no_ special cases.
> 
> In the above example, because the variable is recursive $(wildcard *) is
> _not_ expanded when that line is read.
<...>
> ... because GNU make actually caches the contents of
> directories as it reads them, for performance reasons.

Well, what do you know: Not a day passes without learning something new ;-)
Thanks, Paul!

Johan



_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to