[Top][All Lists]

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

Re: Portable Use of Variables

From: Eric Blake
Subject: Re: Portable Use of Variables
Date: Mon, 27 Oct 2014 12:29:59 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 10/27/2014 11:11 AM, Nick Bowler wrote:
> 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 -
>> Are these uses of variables portable, or should a portable 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.

That said, POSIX is hoping to standardize it in the next few years:

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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