Re: BSD make -- Malformed conditional

2012-02-03 Thread Conrad J. Sabatier
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

Re: BSD make -- Malformed conditional

2012-02-03 Thread Chris Rees
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

Re: BSD make -- Malformed conditional

2012-02-03 Thread Conrad J. Sabatier
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

Re: BSD make -- Malformed conditional

2012-01-27 Thread Chris Rees
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

Re: BSD make -- Malformed conditional

2012-01-27 Thread Matthew Seaman
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

Re: BSD make -- Malformed conditional

2012-01-27 Thread Chris Rees
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} >

BSD make -- Malformed conditional

2012-01-27 Thread Matthew Seaman
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