[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Call function
From: |
Ralf Wildenhues |
Subject: |
Re: Call function |
Date: |
Tue, 2 Jun 2009 20:53:00 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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.
Cheers,
Ralf
- Call function, Tim Frink, 2009/06/01
- Re: Call function,
Ralf Wildenhues <=