[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wildcard for directory?
From: |
Peng Yu |
Subject: |
Re: wildcard for directory? |
Date: |
Wed, 9 Jun 2010 17:25:33 -0500 |
On Wed, Jun 9, 2010 at 3:28 PM, Paul Smith <address@hidden> wrote:
> On Wed, 2010-06-09 at 11:32 -0500, Peng Yu 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?
>
> Easy.
>
> DIRS := $(wildcard *.txt/.)
>
> If you don't like the "/." at the end (it's harmless though) you can get
> rid of it with $(dir $(wildcard *.txt/.))
No. It doesn't work.
$ make
echo ./ *.txt/
./ x.txt/
$ cat Makefile
.PHONY: all
all:
echo $(dir (wildcard *.txt/.))
--
Regards,
Peng