Re: Patch: $(wildcard *.c) style globbing

2000-03-17 Thread John Fremlin
Alexandre Oliva <[EMAIL PROTECTED]> writes: [...] > 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. [...] Yes, that is a much bette

Re: Patch: $(wildcard *.c) style globbing

2000-03-13 Thread Russ Allbery
Johan Danielsson <[EMAIL PROTECTED]> writes: > There are many problems. One problem not mentioned is that csh (on some > platforms) like to stat just about every file it can find. This is not a > big deal on most machines, but if you happen to be using a networked > file system, it can be a real

Re: Patch: $(wildcard *.c) style globbing

2000-03-13 Thread Johan Danielsson
John Fremlin <[EMAIL PROTECTED]> writes: > > Please don't use glob. It's broken. > > Sorry, I don't understand how )-: There are many problems. One problem not mentioned is that csh (on some platforms) like to stat just about every file it can find. This is not a big deal on most machines, but

Re: Patch: $(wildcard *.c) style globbing

2000-03-13 Thread Alexandre Oliva
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

Re: Patch: $(wildcard *.c) style globbing

2000-03-13 Thread John Fremlin
[EMAIL PROTECTED] (Johan Danielsson) writes: > > + local @list = glob($relative_dir); > > Please don't use glob. It's broken. Sorry, I don't understand how )-: I found two QAs in the Perl FAQ about glob: [...] By default glob() forks csh(1) to do the actual glob exp

Re: Patch: $(wildcard *.c) style globbing

2000-03-12 Thread Tom Tromey
> "John" == John Fremlin <[EMAIL PROTECTED]> writes: John> This patch adds the ability to use partial $(wildcard *.h) John> (GNU?) make-style syntax in automake variable declarations. It John> is useful for projects where the files for each target are are John> organised in a single director

Re: Patch: $(wildcard *.c) style globbing

2000-03-11 Thread Johan Danielsson
John Fremlin <[EMAIL PROTECTED]> writes: > + local @list = glob($relative_dir); Please don't use glob. It's broken. /Johan

Patch: $(wildcard *.c) style globbing

2000-03-10 Thread John Fremlin
This patch adds the ability to use partial $(wildcard *.h) (GNU?) make-style syntax in automake variable declarations. It is useful for projects where the files for each target are are organised in a single directory. Example - banana_SOURCES = fridge.app $(wildcard *.tree) banana_SOUR