From owner-svn-src-all@FreeBSD.ORG Mon Mar 19 21:39:53 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id 1BD651065670; Mon, 19 Mar 2012 21:39:53 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id AE04914DA04; Mon, 19 Mar 2012 21:39:52 +0000 (UTC) Message-ID: <4F67A7A9.50003@FreeBSD.org> Date: Mon, 19 Mar 2012 14:39:53 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: Dimitry Andric References: <201203162319.q2GNJjx5039482@svn.freebsd.org> <20120317162754.I1530@besplex.bde.org> <4F678B03.8050307@FreeBSD.org> In-Reply-To: <4F678B03.8050307@FreeBSD.org> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Bruce Evans , Chris Rees Subject: Re: svn commit: r233052 - head/share/mk X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2012 21:39:53 -0000 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