From owner-freebsd-ports@FreeBSD.ORG Mon Jul 7 13:58:53 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CDDC37B401 for ; Mon, 7 Jul 2003 13:58:53 -0700 (PDT) Received: from lug.kamloops.net (lug2.kamloops.net [209.52.173.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id B400243F85 for ; Mon, 7 Jul 2003 13:58:52 -0700 (PDT) (envelope-from fcash@sd73.bc.ca) Received: from localhost ([127.0.0.1]) by lug.kamloops.net with esmtp (Exim 3.16 #1) id 19Ze02-0004W9-00; Mon, 07 Jul 2003 14:58:18 -0700 From: Freddie Cash Organization: School District 73 To: Clement Laforet Date: Mon, 7 Jul 2003 13:51:57 -0700 User-Agent: KMail/1.5.2 References: <200307071330.16446.fcash@sd73.bc.ca> <20030707224405.180b8b98.sheepkiller@cultdeadsheep.org> In-Reply-To: <20030707224405.180b8b98.sheepkiller@cultdeadsheep.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307071351.57915.fcash@sd73.bc.ca> cc: ports@freebsd.org Subject: Re: Problem with conditional in Makefile X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fcash@sd73.bc.ca List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 20:58:53 -0000 On July 7, 2003 01:44 pm, you wrote: > On Mon, 7 Jul 2003 13:30:16 -0700 > Freddie Cash wrote: > > Could someone please point out what I am doing wrong, or where to > > search for more information on using OSVERSION and/or .if > > statement? Muchly obliged. > do you use pre/post includes ? > i.e. > .include > .if ${OSVERSION} > 500000 || defined(WITH_GCC3) > CONFIGURE_ARGS+= --gccver=3 > .else > CONFIGURE_ARGS+= --gccver=2 > .endif > > .include ? No, I don't. And that just set off a bunch of reminder bells in my head. :) This update is to a Makefile that doesn't use the pre/post includes, but the Makefile I grabbed the .if statement from does. Thank you for the reminder. -- Freddie Cash District HelpDesk / Network Admin fcash@sd73.bc.ca helpdesk@sd73.bc.ca (250) 374-0679 ext. 219