automake
[Top][All Lists]
Advanced

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

Re: Appending to builtin Automake variables from an included file


From: Jan Engelhardt
Subject: Re: Appending to builtin Automake variables from an included file
Date: Sun, 1 Mar 2009 00:38:41 +0100 (CET)
User-agent: Alpine 2.00 (LSU 1167 2008-08-23)

On Saturday 2009-02-28 11:16, Ralf Wildenhues wrote:
>> Modern Automake does support appending.  But only appending to a
>> variable that has already been set.
>
>Yes.  This is done primarily to be able to diagnose typos, e.g.,
>  foolish =
>  foo1ish += bar
>[...]
>Is it worth the hassle?  It's certainly a trade-off:
>- more work due to required initializations of all variables,
>- OTOH typos in variables can have rather subtle implications,
>  esp. if those variables are of the "magic automake" kind.

- "+=" could append to variables implicitly defined by make
  (the horror!). Though this does not happen with automake,
  users could walk into a trip when they have to write a manual
  Makefile (e.g. Makefile.in) without the use of Automake.





reply via email to

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