From mint-bounce@lists.fishpool.fi Fri May 7 04:49:51 2010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=fMMRGfsuvOOJStDGVhS91Cnd9i8cLwsYuQXlwv52DZw=; b=oRWm4Y52/KnnvyZ9IK6YmEzMqLyjIKbcWnyf5eu+Ioj4mJmuOvS5gxsU8Uwfa61nky 5FbkkAET2fHDUltWFpdQOhEaWcLOYT7MXhcZCvKRP4lfjsoYVGMhmWT25+4xVRHvz2Pi PdfX2l1/VOsv7TSIRFHK969/OR9H+aytP/t0I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=WRzW9iuNNWqscPyiNFrApraaTq0P+erOuA/NrGDTNKb9eJD6wFpZlmHwjgRydStwnv TXVBHX3mffZ01r0qLtpSca5AQ7dkDWqJn9Ni/bBGBAI6V6u/o0ZgNPbdZz8BVNoysAYn 4PE7b/WNcVq0zsBa6CCEA/5fhxcNQN8xrW3wM= Message-ID: <4BE3D376.6020904@freesbee.fr> Date: Fri, 07 May 2010 10:46:46 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: Re: [MiNT] Fwd: MiNTLib sh-compliant includepath References: <48E5505C.2080907@gmail.com> <49B2E043.5090502@freesbee.fr> <1273163888.13488.1401.camel@jetpack.demon.co.uk> <4BE33D40.4030301@freesbee.fr> <1273185007.13488.1411.camel@jetpack.demon.co.uk> In-Reply-To: <1273185007.13488.1411.camel@jetpack.demon.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Alan Hourihane a écrit : > What about executing it once and storing the information in a variable, > something like... > > INCLUDEPATH = $(shell cat ....) > > Then using $INCLUDEPATH ?? I tried that, but it didn't work as expected. When using a single = sign, it does not improve performance, because the expression is reevaluated each time the variable is used. When using the := operator instead, the affectation is made only once, but very early. On the first time, the file includepath does not exist yet, so the variable remains empty. This is why I gave up. Maybe there is another simple solution. -- Vincent Rivière