help-make
[Top][All Lists]
Advanced

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

Re: new line character in a string


From: Paul D. Smith
Subject: Re: new line character in a string
Date: Fri, 30 Aug 2002 10:03:01 -0400

%% Massimiliano Cialdi <address@hidden> 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 <address@hidden>          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




reply via email to

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