Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - make -e: (3 Items)
   
make -e  
Seems the -e options is the default.  Take:

ROOTPATH:=test

.PHONY:all

all:
	echo "ROOTPATH:" $(ROOTPATH) 

Then call

	make ROOTPATH=dummy

Output is :

ROOTPATH: dummy

I was expecting it to be "test" given the option -e of make seems to be required to force this behavior?


Re: make -e  
Hi Mario,

The '-e' option to make only affects the priority of environment
variables proper: command line assignments are not considered
environment variables for this purpose.  (If you really want to
unconditionally force an override, see the documentation of the
"override" keyword.)

Regards,
Neil

On Mon, 2008-12-15 at 14:59 -0500, Mario Charest wrote:
> Seems the -e options is the default.  Take:
> 
> ROOTPATH:=test
> 
> .PHONY:all
> 
> all:
> 	echo "ROOTPATH:" $(ROOTPATH) 
> 
> Then call
> 
> 	make ROOTPATH=dummy
> 
> Output is :
> 
> ROOTPATH: dummy
> 
> I was expecting it to be "test" given the option -e of make seems to be required to force this behavior?
> 
> 
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post18655
> 
RE: make -e  
Thanks Neil !!!

> -----Original Message-----
> From: Neil Schellenberger [mailto:community-noreply@qnx.com]
> Sent: December-15-08 3:15 PM
> To: general-toolchain
> Subject: Re: make -e
> 
> Hi Mario,
> 
> The '-e' option to make only affects the priority of environment
> variables proper: command line assignments are not considered
> environment variables for this purpose.  (If you really want to
> unconditionally force an override, see the documentation of the
> "override" keyword.)
> 
> Regards,
> Neil
> 
> On Mon, 2008-12-15 at 14:59 -0500, Mario Charest wrote:
> > Seems the -e options is the default.  Take:
> >
> > ROOTPATH:=test
> >
> > .PHONY:all
> >
> > all:
> > 	echo "ROOTPATH:" $(ROOTPATH)
> >
> > Then call
> >
> > 	make ROOTPATH=dummy
> >
> > Output is :
> >
> > ROOTPATH: dummy
> >
> > I was expecting it to be "test" given the option -e of make seems to
> be required to force this behavior?
> >
> >
> >
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post18655
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post18656
>