[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with debian/rules



On Wed, Jan 05, 2000 at 10:24:05AM -0500, Vaidhyanathan Mayilrangam wrote:
> 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 ?
> 
> systax error near ifeq ('i386','i386')
> I tried without quotes and that failed too.

Use make variables:

ifeq ($(DEB_HOST_ARCH),i386)
      use_asm386=yes
else
      use_asm386=no
endif


Note the endif instead fi!

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
Marcus.Brinkmann@ruhr-uni-bochum.de,     marcus@gnu.org    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       brinkmd@debian.org


Reply to: