[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:
> > Use ":=" instead of "=".
> >
> > Then it's evaluated only when assigned, not on every reference
> > of the variable.
>
> It was my first idea but unfortunately it does not work :-(
> Because := variables are evaluated too soon.
>
> The first time make is run, the file includepath does not exist, so the
> variable INCLUDEPATH is initialized with an empty value which will never
> change while make is running. So the compilation fails quickly. But
> running make a second time probably works.

ifeq ($(SECOND_RUN),yes)
INCLUDEPATH := <some path>
SECOND_RUN := yes
endif

	- Eero