Re: $(wildcard) not expanding generated files

2003-01-21 Thread Johan Bezem
Hi, this seems to be by design, to overcome the fact that OBJECTS = *.o doesn't expand the list, whereas OBJECTS = $(wildcard *.o) does. $(wildcard is expanded upon the first pass over the makefile, ie. when no rules have been executed yet; so your 'testfile' doesn't yet exist, and

Re: $(wildcard) not expanding generated files

2003-01-21 Thread DervishD
Hi Johan :) I'm writing to the bug mailinglist so anybody can read the message, ok?, but really is for you ;) this seems to be by design, to overcome the fact that OBJECTS = *.o doesn't expand the list, whereas OBJECTS = $(wildcard *.o) does. Yes, I know, it is very

Re: $(wildcard) not expanding generated files

2003-01-21 Thread Paul D. Smith
%% 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

Re: $(wildcard) not expanding generated files

2003-01-21 Thread DervishD
Hi Paul :) Why doesn't it work? It doesn't work because GNU make actually caches the contents of directories as it reads them, for performance reasons. I supposed that some caching was the cause, but for me was reasonable that $wildcard will not expand if the new file wasn't cached.

Re: $(wildcard) not expanding generated files

2003-01-21 Thread Paul Jarc
Johan Bezem [EMAIL PROTECTED] wrote: DervishD wrote: Will this undesired behaviour (undesired by me, at least) be solved if I replace $(wildcard pattern) with $(shell echo pattern)? No, you'd probably need 'ls', 'echo' just echoes the given characters, and uses no wildcard expansion AFAIK,

Re: $(wildcard) not expanding generated files

2003-01-21 Thread Johan Bezem
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

$(wildcard) not expanding generated files

2003-01-20 Thread DervishD
Hi all :)) Don't know if this is a bug, but anyway this doesn't work and it should (IMHO). The problem is the function $(wildcard) not working properly when the argument is a generated file. Let me explain it with an example, better. We have this tiny Makefile: all: @touch