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:14 +0200, Alejandro Colomar wrote:
> > You need to put the ifdef outside the recipe:
> 
> That would hurt readability a little bit.

IMO a make preprocessor statement inside a recipe is a code smell and I
would find the "outside the recipe" version simpler to understand, but
of course this is a personal taste thing.

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