On Tue, 2 Jun 2009 03:18:59 am Paul Smith wrote:
> On Tue, 2009-06-02 at 02:55 +1000, Anthony Shipman wrote:
> > all:
> >         @echo $(origin HOME)
> >         @echo $(HOME)
> >
> > From 'make -e'
> >
> > environment
> > /home/felix
> >
> > rather than
> >
> > environment override
> > /home/felix
> >
> > Am I doing something wrong?
>
> No.  You only get "environment override" if there was some setting of
> the variable in the makefile that was overridden by the environment.  If
> you do this:
>
>       HOME = foo
>       all: ; @echo $(origin HOME)
>
> then "make -e" will show "environment override".

Then the manual should be updated:

8.9 The `origin' Function

environment 
     if VARIABLE was defined as an environment variable and the -e 
     option is not turned on (*note Summary of Options: Options 
     Summary.). 
environment override 
     if VARIABLE was defined as an environment variable and the -e 
     option is turned on (*note Summary of Options: Options Summary.). 


-- 
Anthony Shipman                    Mamas don't let your babies 
[email protected]                   grow up to be outsourced.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to