From: Damjan Marion Date: Thu, 31 Aug 2017 09:33:34 +0000 (+0200) Subject: Do arithemtric comparison in Makefile without using bc X-Git-Tag: v17.10-rc1~145 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=3ea5eeb35266e5278c1e4e226e53edaaadd74662;p=vpp.git Do arithemtric comparison in Makefile without using bc Change-Id: I245f56814ba3911b832e7450d42c58f235bc6dc2 Signed-off-by: Damjan Marion --- diff --git a/Makefile b/Makefile index 1548f36829e..8eaf515735f 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ ifeq ($(OS_ID)-$(OS_VERSION_ID),fedora-25) RPM_DEPENDS += python-devel RPM_DEPENDS += python2-virtualenv RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries' -else ifeq ($(shell if [ $(echo "$(OS_VERSION_ID) > 25" | bc) -eq 1 ] ; then echo "y" ; fi),"y") +else ifeq ($(shell test $($(OS_VERSION_ID) -gt 25; echo $$?)),0) RPM_DEPENDS += python2-devel RPM_DEPENDS += python2-virtualenv RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'