help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wildcard for directory?


From: Peng Yu
Subject: wildcard for directory?
Date: Wed, 9 Jun 2010 11:32:15 -0500

Hi,

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?

$ ll -go
total 4
-rw------- 1  0 2010-06-09 11:27 a.txt
-rw------- 1 85 2010-06-09 11:29 Makefile
drwx------ 2  6 2010-06-09 11:28 x.txt
$ cat Makefile
.PHONY: all

all:
        echo $(wildcard *.txt/)
        echo $(filter %.txt/,$(wildcard *.txt/))
$ make
echo a.txt x.txt/
a.txt x.txt/
echo x.txt/
x.txt/

-- 
Regards,
Peng



reply via email to

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