help-make
[Top][All Lists]
Advanced

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

Re: -e doesn't work for me


From: Paul Smith
Subject: Re: -e doesn't work for me
Date: Mon, 01 Jun 2009 13:18:59 -0400

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".





reply via email to

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