Re: Help with debian/rules
Vaidhyanathan Mayilrangam wrote:
> Hi ,
>
> I need to check the host architecture to configure a software. I tried the
> following code snippet, but that does not work.
>
> ifeq ('$(DEB_HOST_ARCH)','i386')
> use_asm386=yes
> else
> use_asm386=no
> fi
>
> any ideas ?
Use intermediate variables, don't use quotes.
This Makefile may help you understand it:
--------------------------
arch=$(shell arch)
# ifeq (.config,$(wildcard .config))
ifeq ($(arch),i386)
ARCH=i386
else
ARCH=$(arch)
endif
all:
echo $(ARCH)
--------------------------
Regards,
Joey
--
The only stupid question is the unasked one.
Reply to: