[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: echoing a multiline variable (to a flie)
From: |
Martin Mensch |
Subject: |
Re: echoing a multiline variable (to a flie) |
Date: |
Sun, 2 May 2010 11:57:38 +0200 |
Hello Stephan,
thank you for your answer.
I found a way that works following your first suggestion:
Get rid of the newlines?
Here it is:
define LONG_TEXT
first line
second line
one more line
and so on
endef
define linefeed
endef
# two empty lines !!
LANG += $(subst $(linefeed), >> Test.txt ;echo ,$(LANGER_TEXT))
LANG += >> Test.txt
all:
@rm -f Test.txt
@echo $(LONG_TEXT)
.PHONY : all
Thank you very much
Martin