On Mon, Apr 17, 2023 at 3:39 PM Alejandro Colomar
<alx.manpa...@gmail.com> wrote:

> Dmitry, why did $\\ work for you ($\ being my $(empty)), and not for me
> (as $(empty)\)?

¿Cómo estás, Alex?
When make parses a definition, first it performs line continuation
business, then expands macros.

In the case of $(empty)\<newline>, make replaces \<newline> with a
space during line continuation phase, then expands $(empty).
In the case of $\\<newline>, the 1st backslash escapes the 2nd
backslash and preserves \<newline> during line continuation phase.
Then $\ is expanded to an empty string. \<newline> remains.

regards, Dmitry

Reply via email to