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: Chris Chiasson
Subject: Re: use of wildcard function recursively
Date: Mon, 27 Mar 2006 21:11:15 -0600

Thank you. Since I intend to stick with make:

Does anyone have a utility script (that could be adapted) to
mass-sanitize some jpg files?

I am referring to file pathnames of the jpg files, not the contents
thereof - lol.

On 3/27/06, Aditya Kher <address@hidden> wrote:
> > 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
>


--
http://chris.chiasson.name/




reply via email to

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