On Fri, 3 Feb 2012 21:29:15 +
Chris Rees wrote:
> On 3 February 2012 21:20, Conrad J. Sabatier wrote:
> > On Fri, 27 Jan 2012 16:05:37 +
> > Matthew Seaman wrote:
> >
> >>
> >> Dear all,
> >>
> >> Posting this mostly for the archives, but it's probably relevant to
> >> some people here
On 3 February 2012 21:20, Conrad J. Sabatier wrote:
> On Fri, 27 Jan 2012 16:05:37 +
> Matthew Seaman wrote:
>
>>
>> Dear all,
>>
>> Posting this mostly for the archives, but it's probably relevant to
>> some people here too.
>>
>> When hacking on Makefiles, should you wish to match an item i
On Fri, 27 Jan 2012 16:05:37 +
Matthew Seaman wrote:
>
> Dear all,
>
> Posting this mostly for the archives, but it's probably relevant to
> some people here too.
>
> When hacking on Makefiles, should you wish to match an item in a list,
> you might write something like this:
>
> .for ite
On 27 January 2012 17:45, Matthew Seaman
wrote:
> On 27/01/2012 16:51, Chris Rees wrote:
>>> .for item in ${LIST}
>>> > .if ${item} == "this" # Ooops
>
>> You shouldn't use quotes either.
>
> I think that not quoting might be better style, but it's not the typical
> usage in make(1). There are q
On 27/01/2012 16:51, Chris Rees wrote:
>> .for item in ${LIST}
>> > .if ${item} == "this" # Ooops
> You shouldn't use quotes either.
I think that not quoting might be better style, but it's not the typical
usage in make(1). There are quite a few contrary examples in the ports:
% < /tmp/ports-m
On 27 Jan 2012 16:06, "Matthew Seaman"
wrote:
>
>
> Dear all,
>
> Posting this mostly for the archives, but it's probably relevant to some
> people here too.
>
> When hacking on Makefiles, should you wish to match an item in a list,
> you might write something like this:
>
> .for item in ${LIST}
>
Dear all,
Posting this mostly for the archives, but it's probably relevant to some
people here too.
When hacking on Makefiles, should you wish to match an item in a list,
you might write something like this:
.for item in ${LIST}
.if ${item} == ${THING} # Ooops!
THING_FOUND=1
.endif
.endfor