[Top][All Lists]

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

Re: Dynamic evaluation of build scripts

From: Reinier Post
Subject: Re: Dynamic evaluation of build scripts
Date: Mon, 12 Jan 2015 16:51:34 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon Jan 12 13:14:02 2015, address@hidden (SF Markus Elfring) wrote:
> > GNU make is the only implementation of make that supports any GNU
> > make functions, including $(eval ...), if that's what you mean.
> I hope that more software tools can cope with make file syntax and
> processing of corresponding GNU extensions.
> > In fact, recursive variable expansion is about the only one
> > of the techniques I discuss above which is widely implemented
> > in other versions of make.
> I find it interesting which limitations from other approaches need
> to be also considered for the development of reasonably portable
> build scripts.

Making your makefiles portable across make implementations
isn't going to do much for portability.  If you want portability,
it's probably going to be better to just require GNU Make everywhere.
You could even create a couple of rules that check whether GNU Make
is being used, and if not, fetch, compile and install it, then invoke it
on your real Makefile.  That is going to do a lot more
for portability than waiting for features to be ported across
make implementations ever will.

Reinier Post
TU Eindhoven

reply via email to

[Prev in Thread] Current Thread [Next in Thread]