Hello,

how to output a multiline variable to a file?
I tried this but it failed:

define LONG_TEXT
first line
second line
one more line
and so on
endef

all:
 @rm -f Test.txt
 @echo $(LONG_TEXT) >> Test.txt

.PHONY : all

It echos "first line" to the console and then tries to create a process "second 
line" and stops with an error.

How can I do it?

Thank you for any help

Martin
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to