[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: wildcard recursive?!
From: |
Sylvain Becker |
Subject: |
RE: wildcard recursive?! |
Date: |
Fri, 17 Oct 2003 16:45:51 -0700 |
ok, maybe it s not a gnu-make. that s why I am confused.
I have read the man, and found a way to do it:
FILES :sh = find . -name "*.c"
otherwise, the command you gave me, did not print anything.
thanks, for your help
Sylvain
-----Original Message-----
From: Paul Smith [mailto:address@hidden Behalf Of Paul D.
Smith
Sent: Friday, October 17, 2003 4:12 PM
To: Sylvain Becker
Cc: address@hidden
Subject: RE: wildcard recursive?!
%% "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
- Re: exception to Paul's Second Rule?, (continued)
- Re: exception to Paul's Second Rule?, Noel Yap, 2003/10/16
- Re: exception to Paul's Second Rule?, Paul D. Smith, 2003/10/16
- Re: exception to Paul's Second Rule?, Noel Yap, 2003/10/16
- Re: exception to Paul's Second Rule?, Paul D. Smith, 2003/10/16
- Re: exception to Paul's Second Rule?, Noel Yap, 2003/10/17
- wildcard recursive?!, Sylvain Becker, 2003/10/17
- Re: wildcard recursive?!, Paul D. Smith, 2003/10/17
- Re: wildcard recursive?!, Dan Kegel, 2003/10/17
- RE: wildcard recursive?!, Sylvain Becker, 2003/10/17
- RE: wildcard recursive?!, Paul D. Smith, 2003/10/17
- RE: wildcard recursive?!,
Sylvain Becker <=
- RE: wildcard recursive?!, Paul D. Smith, 2003/10/17
- Re: wildcard recursive?!, Noel Yap, 2003/10/17
Re: exception to Paul's Second Rule?, Noel Yap, 2003/10/16
- Re: exception to Paul's Second Rule?, Robert Mecklenburg, 2003/10/16
- Re: exception to Paul's Second Rule?, Noel Yap, 2003/10/16
- Re: exception to Paul's Second Rule?, Robert Mecklenburg, 2003/10/16
- Re: exception to Paul's Second Rule?, Noel Yap, 2003/10/16
- Re: exception to Paul's Second Rule?, Noel Yap, 2003/10/16
Re: exception to Paul's Second Rule?, Benoit Poulot-Cazajous, 2003/10/24