make-w32
[Top][All Lists]
Advanced

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

Re: $(shell) strips CRLF


From: Paul D. Smith
Subject: Re: $(shell) strips CRLF
Date: Thu, 25 Apr 2002 16:37:05 -0400

%% "Bryan Miller" <address@hidden> writes:

  bm> I have a makefile that performs a command like

  bm> FOO := $(shell cat foo)

  bm> where foo is a multiline ASCII text file.  For some reason the
  bm> $(shell) bit is stripping of the hex ODOA off the end of the lines
  bm> so FOO is just one long line.

Yes.  Think of $(shell ...) as make's answer to the shell's backticks
operation.

Having newlines in a make variable is not useful anyway.

-- 
-------------------------------------------------------------------------------
 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]