[PATCH 2/2] Makefile: Allow specifying PYTHON environment variable.

Jelmer Vernooij jelmer at samba.org
Thu Nov 8 20:22:14 MST 2012


On Thu, 2012-11-08 at 22:06 -0500, simo wrote:
> On Thu, 2012-11-08 at 22:39 +0100, Jelmer Vernooij wrote:
> > This is required for Minix, where python is named "python2.X".
> > 
> > Signed-off-by: Jelmer Vernooij <jelmer at samba.org>
> > ---
> >  Makefile | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/Makefile b/Makefile
> > index ae2fc06..99bba9a 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -1,6 +1,7 @@
> >  # simple makefile wrapper to run waf
> >  
> > -WAF_BINARY=./buildtools/bin/waf
> > +PYTHON=python
> 
> shouldn't this be PYTHON ?= python
> 
> or how are you going to override it on minix ?
I was using "make PYTHON=python2.7", which works but does require
specifying the python command more than once.

Thanks, I'll change it to use "PYTHON ?= python", that's quite a bit
neater. 

Cheers,

Jelmer



More information about the samba-technical mailing list