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..!! :-)