[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Fwd: MiNTLib sh-compliant includepath



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.