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