From mint-bounce@lists.fishpool.fi  Thu May  6 18:31:46 2010
X-Virus-Scanned: amavisd-new at demon.co.uk
Subject: Re: [MiNT] Fwd: MiNTLib sh-compliant includepath
From: Alan Hourihane <alanh@fairlite.co.uk>
To: Vincent =?ISO-8859-1?Q?Rivi=E8re?= <vincent.riviere@freesbee.fr>
Cc: mint@lists.fishpool.fi
In-Reply-To: <4BE33D40.4030301@freesbee.fr>
References: <48E5505C.2080907@gmail.com>
	 <c6533ef60903071023x509e5a4csdaa58493ffe98cd1@mail.gmail.com>
	 <49B2E043.5090502@freesbee.fr>
	 <1273163888.13488.1401.camel@jetpack.demon.co.uk>
	 <4BE33D40.4030301@freesbee.fr>
Content-Type: text/plain; charset="ISO-8859-1"
Date: Thu, 06 May 2010 23:30:07 +0100
Message-Id: <1273185007.13488.1411.camel@jetpack.demon.co.uk>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.3 
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: alanh@fairlite.co.uk
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o46MVk3m006085

On Fri, 2010-05-07 at 00:05 +0200, Vincent Rivière wrote:
> Alan Hourihane wrote:
> >> I have always been annoyed to not see the full expanded command line when
> >> compiling the MiNTLib. It can be achieved by using the $(shell function of make.
> >>
> >> So instead of using:
> >> 	-I$$(<$(top_srcdir)/includepath)
> >> use:
> >> 	-I$(shell cat $(top_srcdir)/includepath)
> >
> > Miro/Vincent,
> >
> > I completely forgot about this and just committed.
> >
> > Let me know if there's any problems.
> 
> We had abandoned that solution, since it resulted in slower compilation 
> times (need to fork an additional shell and cat when compiling every file).

Ooops... but....

> I had proposed that alternative solution and it had been committed:
> http://sparemint.atariforge.net/mailinglist/Mailing-Lists/MiNT-List.200910/4AE77B46.4010106@freesbee.fr.text
> 
> The current implementation with the nonstandard $(< ) syntax is the most 
> efficent, but supported by bash only. So the makefile detects if the default 
> shell is not bash and displays the workaround if it is not the case.
> 
> But maybe another strategy would be better now.

What about executing it once and storing the information in a variable,
something like...

INCLUDEPATH = $(shell cat ....)

Then using $INCLUDEPATH ??

Alan.


