Re: conditionals in Makefiles
Georg Schwarz <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.wip.general |
|---|---|
| Message-ID | <[email protected]> |
Am 19.11.2009 um 00:13 schrieb Larson, Timothy E.:
> I am trying to make a block of my package Makefile conditional on
> the OPSYS, like so...
>
> .if ${OPSYS} == "SunOS"
> # do stuff....
> .endif
>
> ...but when I bmake, it says ''Malformed conditional (${OPSYS} ==
> "SunOS")'' and ''Need an operator''. However, plenty of other
> package Makefiles are doing this, so I must be missing something.
make sure the following line is in the Makefile prior to referencing $
{OPSYS}:
.include "../../mk/bsd.prefs.mk"
--
Georg Schwarz http://home.pages.de/~schwarz/
[email protected] +49 151 11559652
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july