Re: Help with debian/rules
On Wed, Jan 05, 2000 at 10:24:05AM -0500, 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 ?
[This is probably better suited to -mentors.]
Well, I got the error:
/tmp/testmf:9: *** missing `endif'. Stop.
So you might like to change 'fi' to 'endif'.
You can also get rif of the quote marks around the $(DEB_HOST_ARCH)
and i386.
Also, what happens if DEB_HOST_ARCH has not been set, for example, if
debian/rules is run manually? You could add the following before your
section:
ifeq ($(DEB_HOST_ARCH),)
DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null)
endif
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
Reply to: