Date: Sun, 21 Jan 2001 00:46:20 -0800 From: Jim Mock <jim@geekhouse.net> To: Gustavo Vieira Goncalves Coelho Rios <gustavo@ifour.com.br> Cc: Matthew Emmerton <matt@gsicomp.on.ca>, questions@FreeBSD.ORG Subject: Re: Why make complains ? Message-ID: <20010121004620.C2687@envy.geekhouse.net> In-Reply-To: <3A6A6BB9.AE55918@ifour.com.br>; from gustavo@ifour.com.br on Sun, Jan 21, 2001 at 02:55:21AM -0200 References: <3A6A6704.F817CEE4@ifour.com.br> <005201c08366$21f34db0$1200a8c0@gsicomp.on.ca> <3A6A6BB9.AE55918@ifour.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Jan 2001 at 02:55:21 -0200, Gustavo Vieira Goncalves Coelho Rios wrote:
> Matthew Emmerton wrote:
> > > I am trying to get this Makefile running:
> > >
> > >
> > > DEP_EXT = FCGI_IO
> > >
> > > FCGI_IO ?= /usr/local/include
> > >
> > > main :
> > > .for _DEP_EXT in ${DEP_EXT}
> > > .if ${_DEP_EXT} == FCGI_IO
> > > echo ${DEP_EXT}
> > > .endif
> > > .endfor
> >
> > You need the conditional of the if statement in brackets:
> >
> > .if (${_DEP_EXT} == FCGI_IO)
>
> Thanks for your help, but i think that it does not solve the problem.
>
> DEP_EXT = FCGI_IO
>
> FCGI_IO ?= /usr/local/include
>
> main :
> .for _DEP_EXT in ${DEP_EXT}
> .if (${_DEP_EXT} == FCGI_IO)
> echo ${_DEP_EXT}
> .endif
> .endfor
>
> And now:
>
> grios@etosha$ make
> "Makefile", line 1: Malformed conditional ((FCGI_IO == FCGI_IO))
> "Makefile", line 1: Missing dependency operator
Erm, read this and then look at your first line. Do you see the
difference?
- jim
--
jim mock <jim@jmock.com> work: jim@osd.bsdi.com | jim@FreeBSD.org
http://soupnazi.org/ BSDi Open Source Div | http://bsdi.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010121004620.C2687>
