On Wed, Dec 16, 2020 at 6:22 PM David <bouncingc...@gmail.com> wrote: > > On Wed, 16 Dec 2020 at 17:00, Masahiro Yamada <masahi...@kernel.org> 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
Ah, this is a cool idea. > > n:=$(newline) > m1:=This message > m2:=has several lines > > $(error $(n)$(m1)$(n)$(m2)) > [david@kablamm]$ make > Makefile:12: *** > This message > has several lines. Stop. > [david@kablamm]$ In hindsight, the preceding *** is a bit unfortunate (I do not see it for $(warning) ) but this works. Thank you. -- Best Regards Masahiro Yamada