automake
[Top][All Lists]
Advanced

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

Re: Variable list modification


From: Ralf Wildenhues
Subject: Re: Variable list modification
Date: Thu, 21 Apr 2011 01:16:06 +0200
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Justin,

* Too, Justin A. wrote on Wed, Apr 20, 2011 at 11:33:26PM CEST:
> FOO=1 2
> $(FOO:=bar) => 1bar 2bar.
> 
> Is there a way to prepend bar?

This is a GNU make question, or maybe a Posix make question, depending
on what you target.  In Posix make, the answer is no.  With GNU make,
you can use the patsubst function, see 'info make --index patsubst'.

Please note that automake won't really grok GNU make functions, so using
them in variables that are special to automake can lead to surprises.

Hope that helps.

Cheers,
Ralf



reply via email to

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