On Wed, Dec 16, 2020 at 3:35 PM Sébastien Hinderer
wrote:
>
> Dear Masahiro,
>
> $(error This message \
> has severa laines)
>
> seemsto work for me.
>
> hth,
>
> Sébastien.
>
I want to display multi-line
error messages in the _console_
when $(error ) is hit.
$(error This message \
has sever
Sorry. How about:
define message
This is a
multi-line
error message.
endef
$(error $(message))
Does that help you?
Sébastien.
On Wed, 16 Dec 2020 at 17:00, Masahiro Yamada wrote:
> Is there a good idea to make
> $(error ) display a multi-line message?
A variable can be defined to contain a newline.
[david@kablamm]$ cat Makefile
define newline
endef
n:=$(newline)
m1:=This message
m2:=has several lines
$(error $(n
On Wed, Dec 16, 2020 at 6:22 PM David wrote:
>
> On Wed, 16 Dec 2020 at 17:00, Masahiro Yamada wrote:
>
> > Is there a good idea to make
> > $(error ) display a multi-line message?
>
> A variable can be defined to contain a newline.
>
> [david@kablamm]$ cat Makefile
>
> define newline
>
>
> endef
Masahiro Yamada (2020/12/16 18:45 +0900):
> In hindsight, the preceding *** is a bit unfortunate
> (I do not see it for $(warning) )
> but this works.
Perhaps you could use the info function to print your message and then
callthe error one with an empty string just to abort...
Sébastien.
On 2020-12-16 01:50, Sébastien Hinderer wrote:
Masahiro Yamada (2020/12/16 18:45 +0900):
In hindsight, the preceding *** is a bit unfortunate
(I do not see it for $(warning) )
but this works.
Perhaps you could use the info function to print your message and then
callthe error one with an empty