automake
[Top][All Lists]
Advanced

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

Re: Portable Use of Variables


From: fr33domlover
Subject: Re: Portable Use of Variables
Date: Tue, 11 Nov 2014 19:59:13 +0200

On 2014-10-27
Eric Blake <address@hidden> wrote:

> 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 -
> >>
> >> 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.
> 
> That said, POSIX is hoping to standardize it in the next few years:
> 
> http://austingroupbugs.net/view.php?id=519
> 

Hmmm I was sure it's portable because `make distcheck` doesn't complain about
the %s, and I'm using -Werror and -Wall automake flags. How bad is it? I
suppose it's not specific to just GNU make alone?

Attachment: signature.asc
Description: PGP signature


reply via email to

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