Compare integers in GNU make 4.4+.
Section: Conditional and boolean-like functions
intcmp function
makefile
makefile
RESULT := $(intcmp $(JOBS),8,lt,eq,gt)Explanation
Useful when you need numeric branching purely inside make.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Conditional and boolean-like functions
if function
Select one of two expansions based on non-empty condition text.
subst replace text
Replace every occurrence of one string with another.