Re: Call function

2009-06-02 Thread Chris Jones
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;

Re: Call function

2009-06-02 Thread Ralf Wildenhues
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 \ > ex

Call function

2009-06-01 Thread Tim Frink
Sorry, if the question about Makefiles is off-topic here but I didn't find Makefile-specific NG. I try to use a call function in a Makefile. This code was up to now part of a Makefile rule: ruleA: $(MAKE) ruleB ruleB: if [ -f file1 ] && [ -f file2 ]; then \