Conditional broken line in recipe

Alejandro Colomar <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Organization Linux
Message-ID <[email protected]>
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 |
endif
	baz


Do you have any better alternatives?

Thanks,
Alex

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
OpenPGP_signature (application/pgp-signature, 833 B) - not displayed
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.