help-make
[Top][All Lists]
Advanced

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

Re: multi-line message to $(error )


From: Masahiro Yamada
Subject: Re: multi-line message to $(error )
Date: Sun, 20 Dec 2020 01:15:27 +0900

On Thu, Dec 17, 2020 at 1:18 AM Kaz Kylheku (gmake)
<729-670-0061@kylheku.com> wrote:
>
> 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 string just to abort...
>


The difference is that $(info ...) sends the message to stdout.

I prefer sending error messages to stderr.


> > Sébastien.
>
> Or:
>
> Makefile:1: first line
> Makefile:2: second line
> Makefile:3: *** This is a fatal error.  Stop.
>
>

Yeah, I like this better.


--
Best Regards
Masahiro Yamada



reply via email to

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