help-make
[Top][All Lists]
Advanced

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

RE: wildcard all the .cc file in the subdirectories?


From: Dave Korn
Subject: RE: wildcard all the .cc file in the subdirectories?
Date: Thu, 27 Sep 2007 13:25:57 +0100

On 26 September 2007 22:59, Peng Yu wrote:

> Hi,
> 
> Suppose I have a root directory, whose subdirectories could also
> subdirectories, etc. I want to wildcard all the .cc in the root
> directory, which shall give me all the path of all the .cc files.
> Would you please let me know how to do it?

  Is this what you're looking for?

DIR:=/path/to/whereever
CC_FILES_IN_ROOT:=$(wildcard $(DIR)/*.cc)


  It doesn't specifically look for files, but as long as none of your
directories have '.cc' extensions that will be OK.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....





reply via email to

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