On Wed, Jun 9, 2010 at 3:28 PM, Paul Smith <[email protected]> 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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make