[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional broken line in recipe
From: |
Alejandro Colomar |
Subject: |
Re: Conditional broken line in recipe |
Date: |
Sun, 3 Sep 2023 01:03:11 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 |
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 the rules.
I was also wondering... is ONESHELL significant for performance? Does the
reduction in number of shells speed up things?
>
> .ONESHELL:
> target:
> foo |
> ifeq (...)
> bar |
> endif
> baz
>
>
> Do you have any better alternatives?
>
> Thanks,
> Alex
>
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
OpenPGP_signature
Description: OpenPGP digital signature
Re: Conditional broken line in recipe, Paul Smith, 2023/09/02
Re: Conditional broken line in recipe, Bahman Movaqar, 2023/09/03