help-make
[Top][All Lists]
Advanced

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

Re: wildcard recursive?!


From: Paul D. Smith
Subject: Re: wildcard recursive?!
Date: Fri, 17 Oct 2003 18:31:17 -0400

%% "Sylvain Becker" <address@hidden> writes:

  sb> I am looking for something like :
  sb> FILES = $(shell find . -name "*.c")

  sb> but without calling the shell, because it seems not to work on
  sb> solaris.

It must work.  If it doesn't, you need to investigate that and find out
why.  GNU make uses the exact same methods for invoking $(shell ...) as
for running command scripts, so if one works ...

  sb> I have found "wildcard" :
  sb> FILES = $(wildcard *.c)
  sb> but it doesn't look into the subdirectories and sub-subdirectires

  sb> is there a smart way to retrieve the name of files, including
  sb> files in subdirectories with their path?

The only way is by using $(shell ...).  There is no capability
for this built into GNU make.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "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]