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

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



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