help-make
[Top][All Lists]
Advanced

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

Re: use of wildcard function recursively


From: Aditya Kher
Subject: Re: use of wildcard function recursively
Date: Tue, 28 Mar 2006 11:39:21 +0900

> You cannot, in general, use GNU make (or any other standard make) with
> pathnames containing spaces.

I forwarded this to Chris earlier but didnt copy the list

why not use "shell" to do it for you?
e.g. if we have in PWD

1. a<space>b.txt
2. a<space>.c.txt
3. d.txt

and you want to process only 1. and 2. so I did this:
-----------
list:=$(shell find . -name "[a-d][[:blank:]]*\.txt")

t:
<tab>@echo ${list}
----------

then
%gmake t
gives
./a b.txt ./a c.txt

<Note space in above file names>

-aditya




reply via email to

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