How to escape ${something} (not to expand it) in a Makefile ?

Ion-Mihai Tetcu itetcu at people.tecnik93.com
Fri Jul 30 16:33:33 PDT 2004


On Fri, 30 Jul 2004 15:55:39 -0400
Adam Weinberger <adamw at FreeBSD.org> wrote:

> >> (07.30.2004 @ 1536 PST): Ion-Mihai Tetcu said, in 0.7K: <<
> > Hi,
> > 
> > 
> > I'm out of ideas with this. Bellow I need to have ${LOCALBASE} expanded
> > to its value and the rest of $... to be passed verbatim.
> > Each combination of quoting and escaping I've tried the last 2 1/2 hours
> > dons't work. Could someone please point me to the right doc to read or
> > explain how does this work ?
> > 
> > RUN_DEPENDS+='--with-delivery-agent=${LOCALBASE}/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} $u'
> >> end of "How to escape ${something} (not to expand it) in a Makefile ?" from Ion-Mihai Tetcu <<
> 
> First of all, that's not a valid use of RUN_DEPENDS. That looks like
> stuff that should be added to CONFIGURE_ARGS.

And it is, only that I did a copy/paste of the things after the = and
added the left side by hand in the email.

> 
> Try:
> 
> .include <bsd.port.pre.mk>
> CONFIGURE_ARGS+= --with-delivery-agent=${LOCALBASE}/cyrus/bin/deliver \
> 		 -e -r $${sender} -m $${extension} $${user} $$u
> .include <bsd.port.post.mk>
> 
> or something to that effect.

Thanks,

-- 
IOnut
Unregistered ;) FreeBSD "user"



More information about the freebsd-ports mailing list