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

the other alternative (i forgot who wrote it) would also work (i.e. 
setting the variable on the command line when running make, rather then in 
the makefile).

Makefiles should not be medled with. if you try to do something 
complicated - most likely you'll fail, cause the language that gmake (and 
the commercial 'make' variants) supports - are very very limited.

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=================================================================
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