Performing greater-than less-than calculations in a Makefile

Viewed 23852

I'm trying to do this in a Makefile:

value = 2.0

if ${greaterthan ${value}, 1.50}
-> execute a rule
elseif ${lessthan ${value}, 0.50}
-> execute a rule
endif

It seems like quite a common thing to want to do. What's the best way of doing this?

4 Answers
Related