From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 7 18:25:27 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AC46AD9C; Fri, 7 Feb 2014 18:25:27 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 9939F1ADF; Fri, 7 Feb 2014 18:25:27 +0000 (UTC) Received: from Alfreds-MacBook-Pro-9.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 46E081A3C1C; Fri, 7 Feb 2014 10:25:27 -0800 (PST) Message-ID: <52F5251A.8020401@mu.org> Date: Fri, 07 Feb 2014 10:25:30 -0800 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: lev@FreeBSD.org, freebsd-hackers@freebsd.org Subject: Re: Is it possible to get make variable without recursive expansion? References: <12310461351.20140207203417@serebryakov.spb.ru> In-Reply-To: <12310461351.20140207203417@serebryakov.spb.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Feb 2014 18:25:27 -0000 On 2/7/14 8:34 AM, Lev Serebryakov wrote: > Hello, Freebsd-hackers. > > > Suppose, I have in my Makefile such construction: > > A=xxx > B=yyy > ANB=${A} and ${B} > > Is it possible to get value of ANB without recursive expansion, i.e. string > "${A} and ${B} and" in this case? I know, that all expansions are done at > last moment (If I don't use ":=" operator), but is it possible to block > second- and more-level expansion? > > I need to output "ANB=${ANB}" construction to external file without further > expansion... > a: echo "AMB=\$${AMB}" ? -- Alfred Perlstein