bug-make
[Top][All Lists]
Advanced

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

Re: feature suggestion - ** for recursive globbing


From: Paul D. Smith
Subject: Re: feature suggestion - ** for recursive globbing
Date: Wed, 2 Jan 2002 23:46:37 -0500

%% Nelson Minar <address@hidden> writes:

  nm> Java Makefiles have a problem; .java files end up being in lots of
  nm> little directories. How about expanding make's globbing rules to
  nm> include a recursive decent? Ie:
  nm>   $(wildcard java-src/**/*.java)
  nm> Which would be like doing
  nm>   $(shell find java-src -name *.java)

  nm> The "**" convention is used pretty consistently in a lot of Unix
  nm> tools, although I don't know if any GNU tools do it.

I don't know that that's true; I know zsh uses this but I'm not familiar
with any other tools that do.

Anyway, GNU make uses the GLIBC globbing library, essentially verbatim.
If that library is modified to support this feature, then GNU make will
use it also.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



reply via email to

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