When using the uilt-in functions $(error text) and $(warning text) GNU Make, how can I get line breaks in error / warning output without acrobatics
By acrobatics, I mean ridiculous methods such as these two:
$(warning $(shell /bin/echo -e "something\nfoo\nbar\nbaz")) $(warning $(shell /bin/bash -c 'echo -e "something\nfoo\nbar\nbaz"'))
which, by the way, did not work for me with GNU Make 3.81 on Ubuntu 10.04.
Justification: I want to make the error output in the conditional parts ( ifeq , ifneq ) of my GNUmakefile more readable.
The current workaround for me is to use for each line:
$(warning ...)
and finally for the last line:
$(error ...)
source share