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....



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to