help-make
[Top][All Lists]
Advanced

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

echoing a multiline variable (to a flie)


From: Martin Mensch
Subject: echoing a multiline variable (to a flie)
Date: Sat, 1 May 2010 12:51:50 +0200

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
 

reply via email to

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