On Sat, May 1, 2010 at 12:51 PM, Martin Mensch all: > > @rm -f Test.txt > @echo $(LONG_TEXT) >> Test.txt >
That can't work in this context because $(LONG_TEXT) is expanded before the recipe. So the recipe ends up looking like: echo first line second line ... How can I do it? > Get rid of the newlines? Alternately, you could put them in an extra file (possibly generating that file via make) and do: @cat thefile >> Test.txt -- ----- stephan beal http://wanderinghorse.net/home/stephan/
_______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
