Re: makefile question

2002-12-05 Thread guy keren
On Thu, 5 Dec 2002, Tzafrir Cohen wrote: On Thu, 5 Dec 2002, guy keren wrote: 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.

makefile question

2002-12-04 Thread Michael Sternberg
I would like to set up a taget in a makefile that will only define some variable, and it will be used in the next target, something like this: ppc : ARCH = PPC release: ifeq ($(ARCH),PPC) echo start ppc compiler with ppc flags else echo do something else endif And I

Re: makefile question

2002-12-04 Thread Oleg Goldshmidt
Michael Sternberg [EMAIL PROTECTED] writes: I would like to set up a taget in a makefile that will only define some variable, and it will be used in the next target, Use recursive make: ppc: $(MAKE) ARCH=PPC -- Oleg Goldshmidt | [EMAIL PROTECTED]

Re: makefile question

2002-12-04 Thread Oleg Goldshmidt
Michael Sternberg [EMAIL PROTECTED] writes: I run it with make ppc debug and wait to see performing debug build for PPC I misunderstood your question. It's simpler, actually: make debug ARCH=PPC will work - what's wrong with that? -- Oleg Goldshmidt | [EMAIL PROTECTED]

Re: makefile question

2002-12-04 Thread Michael Sternberg
Oleg Goldshmidt wrote: Use recursive make: ppc: $(MAKE) ARCH=PPC It does not work. Here is a simple makefile: ppc: @ $(MAKE) ARCH=PPC debug: @ echo performing $@ build for $ARCH release: @ echo performing $@ build for $ARCH I run it with make ppc debug and

Re: makefile question

2002-12-04 Thread guy keren
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

Re: makefile question

2002-12-04 Thread Tzafrir Cohen
On Thu, 5 Dec 2002, guy keren wrote: 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. A chalange, then, ha? (reading the gnu-make

Re: makefile question

2002-12-04 Thread Oleg Goldshmidt
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