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 would like to start make with "make ppc release".
Tried to dig in make's "info", only thing I found
appropriate is "Target-specific Variable Values".
I tried as suggested:

ppc : ARCH = PPC
        :

release :
ifeq ($(ARCH),PPC)
        echo start ppc compiler with ppc flags
else
        echo do something else
endif

It gives me "*** commands commence before first target.  Stop."

make version is 3.79.1 GNU Make, i386 platform.

        Thanks for help, Michael.


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