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

Re: [MiNT] mintlib Makefile requires bash as shell



Hi,

On Saturday 17 October 2009, Vincent Rivière wrote:
> Unfortunately this patch makes compilation a bit slower, because before
> compiling each file make has to run SHELL and cat.

>From the patch:
---------
+INCLUDEPATH = $(shell cat $(top_srcdir)/includepath)
+# The following version is faster, but it works only if SHELL is bash
+# and it does not show the contents of includepath while compiling.
+#INCLUDEPATH = $$(<$(top_srcdir)/includepath)
---------

Use ":=" instead of "=".

Then it's evaluated only when assigned, not on every reference
of the variable.

(And use of "?=" would allow the value to be overridden from environment.)


	- Eero