sed dollar sign substitution in Makefile

Franco Fichtner franco at lastsummer.de
Tue Nov 6 20:22:13 UTC 2018


Hi,

> On 6. Nov 2018, at 9:12 PM, Oliver Mahmoudi <o.mahmoudi at gmx.de> wrote:
> 
> Therefore, in Makefile I set: ${REINPLACE_CMD} 's|print $1|print $4|g' file_to_be_changed

In make commands you need to escape $ as $$ to be able to pass it to the shell.


Cheers,
Franco


More information about the freebsd-ports mailing list