Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2012 14:39:53 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Bruce Evans <brde@optusnet.com.au>, Chris Rees <utisoft@gmail.com>
Subject:   Re: svn commit: r233052 - head/share/mk
Message-ID:  <4F67A7A9.50003@FreeBSD.org>
In-Reply-To: <4F678B03.8050307@FreeBSD.org>
References:  <201203162319.q2GNJjx5039482@svn.freebsd.org> <20120317162754.I1530@besplex.bde.org> <CADLo838oBTwEvYPM1y1XSxCJ2c7EL%2BhqhrcdiDv8%2BuxeuM_hTQ@mail.gmail.com> <4F678B03.8050307@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/19/2012 12:37 PM, Dimitry Andric wrote:
> It would be much nicer to be able to write:
> 
> .if defined(FOO)
>   .if defined(BAR)
>     CFLAGS+=	-DFOO_BAR
>   .endif
> .endif

Take a look at /usr/ports/Mk/bsd.port.mk for how this can be done.

-- 

    This .signature sanitized for your protection



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F67A7A9.50003>