From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pfepa.post.tele.dk (pfepa.post.tele.dk [195.41.46.235]) by ozlabs.org (Postfix) with ESMTP id 1D9EB679EB for ; Wed, 11 May 2005 14:59:58 +1000 (EST) Date: Wed, 11 May 2005 07:01:19 +0200 From: Sam Ravnborg To: cpclark@xmission.com Message-ID: <20050511050119.GC8025@mars.ravnborg.org> References: <20050510042828.GA8398@mars.ravnborg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: Tom Rini , Linux Kernel list , linuxppc-embedded list Subject: Re: PPC uImage build not reporting correctly List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > > > Looks ok - but I do not see why use of $(shell ...) did not work out. > > As I understand it, the $(shell ...) construct doesn't "work" in the case > cited above because make evaluates/expands the $(shell ...) stuff while it > is parsing the makefile and building the command list--i.e. before it has > issued any commands to build anything. What seems to be desired in this > case is a file-existence test which runs "inline" with respect to the > preceding commands. The use of $(shell ...) inside a command > subverts/preempts that natural sequence. I think. :-) That explains it - thanks! Sam