When a variable contains the output of a commande, printing this variable with echo suppresses the new lines.
Escaping the backslashes with echo -e does not work. Setting the SHELL variable does not help either.
Example :
$ cat log1.txt
terminated
terminator
$ gmake
terminated terminator
With the following makefile :
all:
@ab=`cat log1.txt`;\
echo -e $$ab
Makefile version : GNU Make 3.82
Definitively a shell issue. The same code in a shell script does not work either.