From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 7 20:44:41 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 819E48D3; Fri, 7 Feb 2014 20:44:41 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 6B5AC1706; Fri, 7 Feb 2014 20:44:41 +0000 (UTC) Received: from Alfreds-MacBook-Pro.local (unknown [50.204.88.5]) by elvis.mu.org (Postfix) with ESMTPSA id 54F6E1A3C2B; Fri, 7 Feb 2014 12:44:36 -0800 (PST) Message-ID: <52F545B5.7040407@mu.org> Date: Fri, 07 Feb 2014 12:44:37 -0800 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: lev@FreeBSD.org Subject: Re: Is it possible to get make variable without recursive expansion? References: <12310461351.20140207203417@serebryakov.spb.ru> <52F5251A.8020401@mu.org> <201495029.20140207225205@serebryakov.spb.ru> <52F52F06.8080605@mu.org> <933525355.20140207233844@serebryakov.spb.ru> In-Reply-To: <933525355.20140207233844@serebryakov.spb.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org 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 20:44:41 -0000 On 2/7/14, 11:38 AM, Lev Serebryakov wrote: > Hello, Alfred. > You wrote 7 февраля 2014 г., 23:07:50: > > AP> Your only option would be to "cheat" and not use the expanded form I think: > > AP> A=aaa > AP> B=bbb > AP> AMB=\$${A} and \$${B} > > AP> a: > AP> echo "AMB=${AMB}" > > AP> Results in: > AP> .(19:07:30)(alfred@freefall.freebsd.org) > AP> ~ % make > AP> echo "AMB=\${A} and \${B}" > AP> AMB=${A} and ${B} > AP> .(19:07:30)(alfred@freefall.freebsd.org) > AP> ~ % > > AP> There is no way to query make(1) (that I can see) for the exact value at > AP> the time of assignment and before expansion. > It is pity, because I need to make it with MAKE_ENV & CONFIGURE_MAKE > variables in out port system :( > > > ~ % make -f Makefile -XV AMB ?