help-make
[Top][All Lists]
Advanced

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

Re: "Easy/stupid" question: How to insert nextline chars ??


From: Paul D. Smith
Subject: Re: "Easy/stupid" question: How to insert nextline chars ??
Date: Mon, 9 Apr 2001 10:07:37 -0400

%% Peter Biechele <address@hidden> writes:

  pb> I want to get a file or variable, which contains a string in each
  pb> line. I am using the following command:

  pb> TEST_PATHS := $(foreach dir,  \ 
  pb> $(PROJECT_SRC_DIRS),-S$(TEST_PROJECT_TEXT)$(dir) )

  pb> TEST_PROJECT_TEXT is just a string and PROJECT_SRC_DIRS contains a
  pb> list of directories.

  pb> The result is a list of all the strings in just ONE line without
  pb> any linebreaks ! But I want to have a linebreak after each line
  pb> (=string). What is the most easy way to egt this behaviour ??

Sorry, but I can't understand from your description what you're looking
for.  An explicit example would be nice; what do you want the value of
TEST_PATHS to be?

I don't believe there's any way to get a newline into a variable which
is then kept as one line for shell invocation.  Offhand I can't see why
you would want to do such a thing, anyway.

If you could explain what it is you're trying to do (I mean, why you
want the newline there) maybe I could give you some ideas.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "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]