[Top][All Lists]

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

Re: GNU Make Extensions

From: Christopher Sean Morrison
Subject: Re: GNU Make Extensions
Date: Wed, 10 Dec 2008 11:25:00 -0500

Message: 4
Date: Wed, 10 Dec 2008 07:39:04 +0100
From: Ralf Wildenhues <address@hidden>
Subject: Re: GNU Make Extensions
To: Tom Browder <address@hidden>
Cc: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

Hello Tom,

* Tom Browder wrote on Wed, Dec 10, 2008 at 01:38:53AM CET:
Is it "legal" to use the "+=" operator in lieu of "\" when listing
members of a variable in's?

Yes.  In this case, an Automake extension over portable make syntax,
i.e., automake will flatten the += and 'make' won't ever see it.


One caveat is that there are a few += specific issues in Automake 1.6 that can cause the operator to fail during reconf. If you have a += in a conditional section, you'll get an error along the lines of "CCFILES was already defined in condition TRUE, which implies condition SOME_CONDITION". In that situation, you have to either upgrade Automake or stick to the line-continuations.

Fortunately, Mac OS X 10.4 is one of the remaining (common) configurations still stuck on the ancient 1.6 version. Prior to 10.5, a couple of the autotools were actually managed as part of the "core" OS that isn't allowed to change between major versions. (See thread on the apple dev mailing list for details.) It was finally decoupled with 10.5, though, so it's no longer an issue.


reply via email to

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