[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Portable Use of Variables
From: |
Nick Bowler |
Subject: |
Re: Portable Use of Variables |
Date: |
Mon, 27 Oct 2014 13:11:52 -0400 |
User-agent: |
Mutt/1.5.22 (2013-10-16) |
On 2014-10-26 22:15 +0200, fr33domlover wrote:
> I'm a bit confused about all the expressive features and ways to use makefile
> variables, so just to be sure -
>
> http://www.gnu.org/software/make/manual/html_node/Substitution-Refs.html
>
> Are these uses of variables portable, or should a portable Makefile.am use
> only
> the plain $(var) form without the tricks?
The first form of expansion on that page, $(var:.a=.b), should be OK.
They are standard in POSIX and work on all make implementations that I
know of.
The version with % characters is not portable.
Hope that helps,
--
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)