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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make