help-make
[Top][All Lists]
Advanced

[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 15:43:49 -0700

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

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

wierd...

-----Original Message-----
From: Dan Kegel [mailto:address@hidden
Sent: Friday, October 17, 2003 3:23 PM
To: Sylvain Becker
Cc: address@hidden
Subject: Re: wildcard recursive?!


Sylvain Becker wrote:
> I am looking for something like :
> FILES = $(shell find . -name "*.c")
>
> but without calling the shell, because it seems not to work on solaris.

You're missing the -print command.  Try

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

Posix find doesn't require -print, but classic find does.
- Dan





reply via email to

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