List Info

Thread: Re: override and +=




Re: override and +=
country flaguser name
United States
2008-02-19 20:29:32
Greg,

> This line
>   override F := "a b c"
> prevails     *even if* you set F on the command line,
> rather than  *only if* you set F on the command line.

I don't see the distinction here if you haven't set F on the
command line,
but the behavior of this line by itself is not my question.

> Write 'override' again:
>   override F += d

That works, but I don't see why.  I have now tried all four
combinations
of these two lines (each with and without
"override").  The other 3 cases
make sense to me, but this one does not.  It appears that if
the initial
assignment is an "override" assigment, a
"normal" += is always ignored.
I'm not sure I want to call that a bug, but I would at least
like to see
a warning here that a line in my Makefile is always ignored
and has no
effect (and is therefore likely to be a bug).

   Michael


     
____________________________________________________________
________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )