help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional broken line in recipe


From: Paul Smith
Subject: Re: Conditional broken line in recipe
Date: Sun, 03 Sep 2023 08:38:05 -0400
User-agent: Evolution 3.48.4 (by Flathub.org)

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 <psmith@gnu.org>            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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]