From owner-freebsd-questions Sun Jan 21 0:46:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from envy.geekhouse.net (envy.geekhouse.net [64.81.6.50]) by hub.freebsd.org (Postfix) with ESMTP id 10E0C37B400 for ; Sun, 21 Jan 2001 00:46:38 -0800 (PST) Received: (from jim@localhost) by envy.geekhouse.net (8.11.1/8.11.1) id f0L8kKJ04552; Sun, 21 Jan 2001 00:46:20 -0800 (PST) (envelope-from jim) Date: Sun, 21 Jan 2001 00:46:20 -0800 From: Jim Mock To: Gustavo Vieira Goncalves Coelho Rios Cc: Matthew Emmerton , questions@FreeBSD.ORG Subject: Re: Why make complains ? Message-ID: <20010121004620.C2687@envy.geekhouse.net> Reply-To: jim@geekhouse.net References: <3A6A6704.F817CEE4@ifour.com.br> <005201c08366$21f34db0$1200a8c0@gsicomp.on.ca> <3A6A6BB9.AE55918@ifour.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i In-Reply-To: <3A6A6BB9.AE55918@ifour.com.br>; from gustavo@ifour.com.br on Sun, Jan 21, 2001 at 02:55:21AM -0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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