Re: multi line bash commands in a Makefile

2011-04-10 Thread Clark J. Wang
On Sun, Apr 10, 2011 at 7:30 PM, ali hagigat wrote: > Thanks Clark for the reply. 'count' is set by shell before doing make. like > root> count=0 > > Have you exported the 'count' var before invoking make? > On Sun, Apr 10, 2011 at 3:10 PM, Clark J. Wang > wrote: > > On Sun, Apr 10, 2011 at 6

Re: multi line bash commands in a Makefile

2011-04-10 Thread Sunny
> root> count=0 > You didn't export it.

Re: multi line bash commands in a Makefile

2011-04-10 Thread ali hagigat
Thanks Clark for the reply. 'count' is set by shell before doing make. like root> count=0 On Sun, Apr 10, 2011 at 3:10 PM, Clark J. Wang wrote: > On Sun, Apr 10, 2011 at 6:17 PM, ali hagigat wrote: >> >> How can i specify a multi line shell instruction as a recipe? The >> following returns an er

Re: multi line bash commands in a Makefile

2011-04-10 Thread Clark J. Wang
On Sun, Apr 10, 2011 at 6:17 PM, ali hagigat wrote: > How can i specify a multi line shell instruction as a recipe? The > following returns an error: > > makefile27: > e14: >@echo var1=$(var1) > > makefile25: > include makefile27 > e12: >@echo insidee12 > makefile27: e13 >

multi line bash commands in a Makefile

2011-04-10 Thread ali hagigat
How can i specify a multi line shell instruction as a recipe? The following returns an error: makefile27: e14: @echo var1=$(var1) makefile25: include makefile27 e12: @echo insidee12 makefile27: e13 if ( test $$count -eq 0) then echo "all: ;echo ppp" > makefile27;count=1;f