Re: Makefile parametrisation
On Tue, Apr 25, 2006 at 06:56:27PM +0200, Dennis Stosberg wrote:
> hendrik@topoi.pooq.com wrote:
>
> > I'd like to define a symbol ARCH in my Makefile to be the output
> > of
> > uname -m
> >
> > The obvious thing, just starting with
> >
> > ARCH = `uname -m`
> >
> > didn't seem to work. It defined ARCH to be `uname -m' instead of
> > i686 or x86_64. Not unreasonable, but What *is* the way to do
> > this?
>
> With GNU make you can use "ARCH = $(shell uname -m)".
>
> Regards,
> Dennis
Thanks. That worked. Why do I need it? Because I have just one home
directory, NFS-mounted and shared between two machines with different
architectures. I find it convenient for everything except compiling.
-- hendrik
Reply to: