On Mar 12, 2000, John Fremlin <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (Johan Danielsson) writes:
>> > + local @list = glob($relative_dir);
>>
>> Please don't use glob. It's broken.
> Sorry, I don't understand how )-:
It doesn't matter. This won't go into automake, because the very
notion of glob makes it impossible for automake to automatically
update the `Makefile.in's when needed, because it can't detect the
`when needed' part.
IMO, the cleanest way to accomplish what you want is to add a rule to
your Makefile.am that will expand a glob pattern and write it to a
macro definition in a Makefile fragment you `include' in Makefile.am.
Something like:
update-myGlobs:
echo GLOB = *.tree > myGlobs.n
$(move-if-change) myGlobs.n $(srcdir)/myGlobs
include myGlobs
banana_SOURCES = fridge.app $(GLOB)
You may have to add some dependency of Makefile.in on myGlobs, I'm not
sure. If you have to, it's a bug in automake (IMO :-), but knowing
it's a bug doesn't mean you don't need the dependency :-)
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaranį
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me