help-make
[Top][All Lists]
Advanced

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

multi-line message to $(error )


From: Masahiro Yamada
Subject: multi-line message to $(error )
Date: Wed, 16 Dec 2020 14:58:17 +0900

Hi.


When bailing out the parsing,
is it possible to display
two or more lines of error messages?

I do not know how to pass line breaks
to $(info ), $(warning ), or $(error ).


So, the best I can do is to use
$(error ) for the last line,
and $(warning ) for the others,
like this:

$(warning first line)
$(warning second line)
$(error third line)




$ make
Makefile:1: first line
Makefile:2: second line
Makefile:3: *** third line.  Stop.



It is somewhat clumsy since $(error )
prepends "***".


Is there a good idea to make
$(error ) display a multi-line message?



-- 
Best Regards
Masahiro Yamada



reply via email to

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