bug-make
[Top][All Lists]
Advanced

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

Re: $(wildcard) not expanding generated files


From: DervishD
Subject: Re: $(wildcard) not expanding generated files
Date: Tue, 21 Jan 2003 16:58:28 +0100
User-agent: Mutt/1.4i
User-agent: Mutt/1.4i <http://www.mutt.org>

    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.

> If you make that file an explicit target, rather than a side-effect,
> _then_ it will work.

    In the real makefile, it is an implicit target. I will see if I
can make explicit targets, because now all affected files are
implicit ones (well, they match something as path/* and the like).
Otherwise I'll stick to the $(shell) solution.

>   >> Is this a bug or a feature?
>   jb> Feature.
> Maybe, maybe not.  But, not as straightforward as it seems at any rate :).

    Interesting ;))))

    Thanks a lot for your answer and explanation. Now I have things
clearer, Paul :))

    Note that this is a generated Makefile, part of a bigger proyect
not yet released, but since it is GPL and it may be dumber than I
think, I attach it so you can see what is all about. Feel free to
ignore and feel free to criticize it ;)) Currently you cannot do
'make install' without doing before 'make all' due to the $(wildcard)
function issue, but I'll fix ASAP ;))

    Raúl

Attachment: Makefile
Description: Text document


reply via email to

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