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.
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
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]
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]
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
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
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
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