diff options
author | Damjan Marion <damarion@cisco.com> | 2017-08-31 11:33:34 +0200 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-08-31 12:05:47 +0000 |
commit | 3ea5eeb35266e5278c1e4e226e53edaaadd74662 (patch) | |
tree | 9dded6b63d1890d1a4bf4c52b20c0d01632cea59 | |
parent | 1211beb572bb6185633de9b262f0bf087fc912f5 (diff) |
Do arithemtric comparison in Makefile without using bc
Change-Id: I245f56814ba3911b832e7450d42c58f235bc6dc2
Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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' |