From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 7 18:52:14 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B328840 for ; Fri, 7 Feb 2014 18:52:14 +0000 (UTC) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2BDB71D43 for ; Fri, 7 Feb 2014 18:52:14 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:cc06:8a07:85a3:8279]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id B17C04AC1C; Fri, 7 Feb 2014 22:52:12 +0400 (MSK) Date: Fri, 7 Feb 2014 22:52:05 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <201495029.20140207225205@serebryakov.spb.ru> To: Alfred Perlstein Subject: Re: Is it possible to get make variable without recursive expansion? In-Reply-To: <52F5251A.8020401@mu.org> References: <12310461351.20140207203417@serebryakov.spb.ru> <52F5251A.8020401@mu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: lev@FreeBSD.org 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:52:14 -0000 Hello, Alfred. You wrote 7 =D1=84=D0=B5=D0=B2=D1=80=D0=B0=D0=BB=D1=8F 2014 =D0=B3., 22:25:= 30: AP> On 2/7/14 8:34 AM, Lev Serebryakov wrote: >> Hello, Freebsd-hackers. >> >> >> Suppose, I have in my Makefile such construction: >> >> A=3Dxxx >> B=3Dyyy >> ANB=3D${A} and ${B} >> >> Is it possible to get value of ANB without recursive expansion, i.e. s= tring >> "${A} and ${B} and" in this case? I know, that all expansions are done at >> last moment (If I don't use ":=3D" operator), but is it possible to block >> second- and more-level expansion? >> >> I need to output "ANB=3D${ANB}" construction to external file without = further >> expansion... >> AP> a: AP> echo "AMB=3D\$${AMB}" It will echo "AMB=3D${AMB}" as-is, as far as I understand, it is simple. A= nd I need to get "ANB=3D${A} and ${B}" output. --=20 // Black Lion AKA Lev Serebryakov