%% Massimiliano Cialdi <[EMAIL PROTECTED]> writes:

  mc> How can I add a newline character in a string?
  mc> I tried with:

  mc> STR := l1\nl2

  mc> STR := l1
  mc> l2

  mc> STR := "l1\nl2"

  mc> and some other but none had work

Without knowing why you want the newline character there (what you want
to use $(STR) for), I can't help you.

There is the define/enddef feature of GNU make, which will allow you to
create variables with newlines in them, but the way that the expanded
value of this variable is interpreted may not be what you want--but
since we don't know what you want we can't say more.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to