guy keren <[EMAIL PROTECTED]> writes:

> On Wed, 4 Dec 2002, Michael Sternberg wrote:
> 
> > Oleg Goldshmidt wrote:
> > > Use recursive make:
> > > ppc:
> > >   $(MAKE) ARCH=PPC
> > 
> > 
> > It does not work.
> > Here is a simple makefile:
> > 
> > ppc:
> >     @ $(MAKE) ARCH=PPC
> 
> obviously, you did not read what oleg wrote - and modified his suggestion. 
> the above rule should instead be changed to:
> 
> ppc:
>       @ $(MAKE) ARCH=PPC debug
> 
> and the makefile should be invoked using:
> 
> make ppc

That will work, but I think the OP actually wanted to choose the
"real" target to build, so hardwiring debug into the makefile is not
what "works" for him.

There is nothing wrong with setting the architecture on the command
line for any "real" target, as I suggested in my other posting.

> the other alternative (i forgot who wrote it) 

Me too ;-)

> would also work (i.e. setting the variable on the command line when
> running make, rather then in the makefile).

-- 
Oleg Goldshmidt | [EMAIL PROTECTED]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to