[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -e doesn't work for me
From: |
Anthony Shipman |
Subject: |
Re: -e doesn't work for me |
Date: |
Tue, 2 Jun 2009 03:37:00 +1000 |
User-agent: |
KMail/1.9.7 |
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
address@hidden grow up to be outsourced.