On Jun 9, 2010, at 12:39 PM, Todd Showalter wrote:

> On Wed, Jun 9, 2010 at 12:32 PM, Peng Yu <[email protected]> wrote:
> 
> 
>> I want to get all the directories. But $(wildcard ) only doesn't work.
>> I have to use $(filter) to filter the result. Is there any better way
>> in doing this?
> 
> DIRS = $(shell ls -d *)

Also...

DIRS = $(shell find . -type d -maxdepth 1 -mindepth 1 | cut -c 3-)

Does anyone know how to keep find from prefixing the output with "./"?


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

Reply via email to