From owner-freebsd-questions Wed Jul 26 11:52: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.miros.com (gold.pepperell.net [207.77.57.58]) by hub.freebsd.org (Postfix) with ESMTP id 7E99C37BA79 for ; Wed, 26 Jul 2000 11:51:56 -0700 (PDT) (envelope-from ktelenar@etrue.com) Received: from telenar (outtie.ne.cohesive.com [64.28.85.36]) by mail.miros.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id PF6CV486; Wed, 26 Jul 2000 14:52:32 -0400 Received: by localhost with Microsoft MAPI; Wed, 26 Jul 2000 14:57:38 -0400 Message-ID: <01BFF711.D72B3120.ktelenar@etrue.com> From: Kaj Telenar Reply-To: "ktelenar@etrue.com" To: "'freebsd-questions@freebsd.org'" Subject: make nightmare Date: Wed, 26 Jul 2000 14:57:37 -0400 Organization: eTrue.com, Inc. X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am having troubles using the make utility that comes with FreeBSD. I am trying to put conditionals in the makefile - actually, I'm modifying a bunch of makefiles that came from Windows. I get the following error: . . . Malformed Conditional: ("$(CFG)" == "Release") from this line: .if $(CFG) == "Release" I tried it with the following variants: .if $(CFG) == "Release" .if ${CFG} == "Release" .if ($(CFG) == "Release") .if (${CFG} == "Release") .if($(CFG) == "Release") .if(${CFG} == "Release") The man pages on make claim that '.if' is what I want to use. I tried using 'ifeq', but that appears to be just a GNU make thing. Also: 2. Is there a way to display information without trying to build something? i.e. 'echo' before the first target. 3. Is there a sample makefile that shows all (or most) of the makefile options? Is there more documentation on this version of make? Thank you for your help, -Kaj Telenar ktelenar@etrue.com kaj@telenar.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message