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 19:11:49 -0400

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

  sb> Well, in the makefile, I have tried with and without "-print", it
  sb> s the same.  echo $(C_FILE)show nothing.  (and then .o are not
  sb> created)

  sb> but in the shell it works:
  sb> find . -name "*.c" -print
  sb> it prints all the .c files

Are you sure you're running GNU make?

There is no such thing as $(shell ...) in Solaris make: it's interpreted
as a long, weird variable name.

Also, note you _really_ want a simple assignment:

  FILES := $(shell find . -name "*.c" -print)

(note the :=).  See the GNU make manual for more details.


If none of the above seems to be the problem, try something like:

  FILES := $(shell echo running find in `pwd` 1>&2; find . -name "*.c" -print)

and see if you get anything printed that's interesting.

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