From owner-freebsd-questions Sat Jan 20 20:56:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from midas.ifour.com.br (unknown [200.238.229.70]) by hub.freebsd.org (Postfix) with SMTP id 9618437B402 for ; Sat, 20 Jan 2001 20:55:55 -0800 (PST) Received: (qmail 84074 invoked from network); 21 Jan 2001 01:51:35 -0000 Received: from unknown (HELO ifour.com.br) (192.168.1.11) by 192.168.1.10 with SMTP; 21 Jan 2001 01:51:35 -0000 Message-ID: <3A6A6BB9.AE55918@ifour.com.br> Date: Sun, 21 Jan 2001 02:55:21 -0200 From: Gustavo Vieira Goncalves Coelho Rios X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Matthew Emmerton Cc: questions@FreeBSD.ORG Subject: Re: Why make complains ? References: <3A6A6704.F817CEE4@ifour.com.br> <005201c08366$21f34db0$1200a8c0@gsicomp.on.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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) > > -- > Matt Emmerton 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 "Makefile", line 2: Need an operator "Makefile", line 3: if-less endif "Makefile", line 3: Need an operator make: fatal errors encountered -- cannot continue grios@etosha$ May some else suggest about that ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message