Conditional broken line in recipe

2023-09-02 Thread Alejandro Colomar
Hi! Is something like this possible? target: foo \ ifeq (...) | bar \ endif | baz I imagine I could get something similar, if I I used .ONESHELL:, but I want to avoid it, as I'd need to redesign most of the rules. .ONESHELL: target: foo | ifeq (...) bar

Re: Conditional broken line in recipe

2023-09-02 Thread Alejandro Colomar
On 2023-09-03 01:00, Alejandro Colomar wrote: > Hi! > > Is something like this possible? > > target: > foo \ > ifeq (...) > | bar \ > endif > | baz > > > I imagine I could get something similar, if I I used .ONESHELL:, but I > want to avoid it, as I'd need to redesign most of

Re: Conditional broken line in recipe

2023-09-02 Thread Paul Smith
On Sun, 2023-09-03 at 01:00 +0200, Alejandro Colomar wrote: > Is something like this possible? > > target: > foo \ > ifeq (...) > | bar \ > endif > | baz I'm sure you've tried it and discovered the answer is "no". The backslash will append the next line to the previous line and

Re: Conditional broken line in recipe

2023-09-02 Thread Paul Smith
On Sun, 2023-09-03 at 01:03 +0200, Alejandro Colomar wrote: > I was also wondering... is ONESHELL significant for performance?  > Does the reduction in number of shells speed up things? It might increase performance but that's not what it's for primarily, at least not in my opinion. It's there fo