Re: Conditional broken line in recipe

Paul Smith <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Organization GNU's Not Linux!
Message-ID <[email protected]>
On Sun, 2023-09-03 at 13:20 +0200, Alejandro Colomar wrote:
> Never mind; a python script could be it.

Any language where a backslash at the end of the line changes the
semantics of the script is difficult to use as a make SHELL, without
also using .ONESHELL, because backslash/newline must be used to ensure
make interprets the recipe correctly, AND ALSO make preserves the
backslash/newline when it invokes the script.

Both Python and Perl fall into this category IIRC.  In fact I consider
it likely that almost every scripting language does, although it might
be possible to avoid issues with obscure workarounds.

-- 
Paul D. Smith <[email protected]>            Find some GNU make tips at:
https://www.gnu.org                       http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad
Scientist
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.