From owner-freebsd-questions@FreeBSD.ORG Wed Sep 7 13:21:21 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEAA416A41F for ; Wed, 7 Sep 2005 13:21:21 +0000 (GMT) (envelope-from nivo+sender+6075ff@yuckfou.org) Received: from ssdd.xs4all.nl (ssdd.xs4all.nl [195.64.89.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27FEF43D46 for ; Wed, 7 Sep 2005 13:21:20 +0000 (GMT) (envelope-from nivo+sender+6075ff@yuckfou.org) Received: from localhost (localhost [127.0.0.1]) by imhotep.yuckfou.org (Postfix) with ESMTP id 3DFD9A01 for ; Wed, 7 Sep 2005 15:21:22 +0200 (CEST) Received: from ssdd.xs4all.nl ([127.0.0.1]) by localhost (imhotep.yuckfou.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 89124-07 for ; Wed, 7 Sep 2005 15:21:11 +0200 (CEST) Received: by imhotep.yuckfou.org (Postfix, from userid 1000) id D6F7B43F; Wed, 7 Sep 2005 15:21:11 +0200 (CEST) Received: from [192.168.2.239] (turbata-xp.gondel.local [192.168.2.239]) by localhost.yuckfou.org (tmda-ofmipd) with ESMTP; Wed, 07 Sep 2005 15:21:08 +0200 (CEST) Message-ID: <431EE940.30604@yuckfou.org> Date: Wed, 07 Sep 2005 15:21:04 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit From: Nils Vogels X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) X-TMDA-Fingerprint: 8N1bdtp+4fsiw95VKFUDgJDSFH4 X-Virus-Scanned: amavisd-new at yuckfou.org X-Spam-Status: No, score=-5.895 tagged_above=-999 required=6.31 tests=[ALL_TRUSTED=-3.3, AWL=0.004, BAYES_00=-2.599] X-Spam-Score: -5.895 X-Spam-Level: Subject: Makefile woes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nils Vogels List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2005 13:21:22 -0000 Hi there ! I'm trying to write a Makefile and it's my first time writing a bit more complex one .. I seem to be stuck and examples currently are not very helpful, so I thought I'd try here: What I am trying to do is differ the way of building depending if a variable has been defined, my current Makefile looks like this: build_1: @cd /build/dir && make OPTION=set build_2: @cd /build/dir && make build: .if defined(WANT_OPTION) HAS_OPTION?=1 ${MAKE} build_1 .else HAS_OPTION?=0 ${MAKE} build_2 <-- error in this line .endif Whenever I run "make build" I get: "Makefile", line xx: Need an operator make: fatal errors encountered -- cannot continue The error seems to occur in the indicated line ${MAKE} build_2, but I am at a complete loss what I am doing wrong.. Help! :) I am running RELENG_5_4 and the make that comes with it .. Grts, Nils -- Simple guidelines to happiness: Work like you don't need the money, love like your heart has never been broken and dance like no one can see you.