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

Adam Weinberger adamw at
Fri Jul 30 12:56:04 PDT 2004

>> (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.


.include <>
CONFIGURE_ARGS+= --with-delivery-agent=${LOCALBASE}/cyrus/bin/deliver \
		 -e -r $${sender} -m $${extension} $${user} $$u
.include <>

or something to that effect.

# Adam

Adam Weinberger
adamw at || adamw at
adamw at    ||   adamw at

More information about the freebsd-ports mailing list