help-make
[Top][All Lists]
Advanced

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

Re: unterminated call to function: bug?


From: Paul D. Smith
Subject: Re: unterminated call to function: bug?
Date: Tue, 11 May 2004 12:29:39 -0400

%% "Martin d'Anjou" <address@hidden> writes:

  md> v:=$(shell grep NAME file1 | sed -e '/^#/d;s/NAME:[ ]*//')

The "#" is being seen by make as a comment.  Try:

  v:=$(shell grep NAME file1 | sed -e '/^\#/d;s/NAME:[ ]*//')

Alternatively you can use a variable to hide it:

  hash := \#

  v:=$(shell grep NAME file1 | sed -e '/^$(hash)/d;s/NAME:[ ]*//')

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