Date: Wed, 26 Jul 2000 15:48:54 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Kaj Telenar <ktelenar@etrue.com> Cc: "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG> Subject: Re: make nightmare Message-ID: <20000726154854.A22469@dan.emsphone.com> In-Reply-To: <01BFF711.D72B3120.ktelenar@etrue.com>; from "Kaj Telenar" on Wed Jul 26 14:57:37 GMT 2000 References: <01BFF711.D72B3120.ktelenar@etrue.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 26), Kaj Telenar said: > 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" That's the right syntax. Problem is, if $CFG hasn't been defined, make aborts. So a workaround is to put CFG ?= unknown or something similar at the top of your Makefile, so it has a value by the time it gets to the .if > 3. Is there a sample makefile that shows all (or most) of the makefile > options? Is there more documentation on this version of make? /usr/share/mk/* and /usr/ports/Mk/bsd.port.mk probably have more examples than you'll ever want to look at. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000726154854.A22469>