avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Make file to recursivly generate code for morethan o


From: Sander Pool
Subject: Re: [avr-gcc-list] Make file to recursivly generate code for morethan one target ?
Date: Thu, 3 Jun 2004 17:39:45 -0700

AGAIN recipes is make are executed by a shell. Unless gnu make is different
and I doubt that as earlier WinAVR releases had make trouble because of
paths to the shell. Even the most trivial recipe like '$(MAKE) -bla' is
executed by a shell.

    Sander

----- Original Message ----- 
From: "E. Weddington" <address@hidden>
To: <address@hidden>; "Sander Pool" <address@hidden>
Cc: <address@hidden>
Sent: Thursday, June 03, 2004 3:53 PM
Subject: Re: [avr-gcc-list] Make file to recursivly generate code for
morethan one target ?


> On 3 Jun 2004 at 14:51, Sander Pool wrote:
>
> >
> > Since the recipes for make are executed by whatever shell is configured
you can
> > simply stick that shell script in the rule and pretend make is doing the
looping
> > when in fact it's really the shell.
> >
> > So:
> >
> >
> > do_all:
> >     script line 1\
> >     script line 2\
> >     etc.
> >
> > Make would call itself with the same makefile.
> >
> >     Sander
> >
>
> Again, it is completely unnecessary to have the shell call make. Make has
the
> ability to recursively call itself:
>
> <http://www.gnu.org/software/make/manual/html_mono/make.html#SEC58>
>
> Eric
>
> [Again, this probably won't make it to the list. I'm looking into it; it's
> probably on my end. Bear with me.]
>
>
>



reply via email to

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