help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Call function


From: Chris Jones
Subject: Re: Call function
Date: Tue, 02 Jun 2009 18:28:48 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

On Tue, Jun 02, 2009 at 02:53:00PM EDT, Ralf Wildenhues wrote:
> Hello Tim,
> 
> * Tim Frink wrote on Mon, Jun 01, 2009 at 08:13:50PM CEST:
> > ruleA:
> >     $(call ruleB,file1)
> > 
> > ruleB = \
> >     if [ -f $(1) ] && [ -f file2 ]; then      \
> >           awk '/^#/ { next } {print}' file2;       \
> >         else                                       \
> >           exit 1;                                  \
> >         fi;                                                     
> 
> > When "make" now runs the target "ruleA" I get the error message:
> > 
> > /bin/sh: -c: line 0: unexpected EOF while looking for matching `''
> > /bin/sh: -c: line 1: syntax error: unexpected end of file
> 
> Everything from the # to the end of the line will be considered to be a
> comment, and not passed to the shell.  Posix also specifies that
> comments continue across backslash newline combinations, but some
> non-GNU make implementations don't obey that.

Hehe.. even my mutt's syntax coloring tells me that..!!

:-)




reply via email to

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