help-make
[Top][All Lists]
Advanced

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

escaping bracket in function arguments


From: Mayuresh
Subject: escaping bracket in function arguments
Date: Mon, 22 Dec 2008 19:17:08 +0530
User-agent: KMail/1.9.9

I am not able to find the right way to escape bracket in particular in the 
arguments of a function. See example below:

LIST=a b c
LISTP=$(addprefix "\(", $(LIST))

all:
    echo $(LISTP)

I get the error:
makefile:2: *** unterminated call to function `addprefix': missing `)'.  Stop.

I can work around this by defining bracket as a variable and then using it in 
place of actual bracket, though it will be nicer if I could escape the 
bracket directly. Can someone help?

Mayuresh.




reply via email to

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