]> git.ipfire.org Git - thirdparty/make.git/commit
Introduce $(intcmp ...) for numerical comparison
authorJouke Witteveen <j.witteveen@gmail.com>
Fri, 16 Jul 2021 12:04:41 +0000 (14:04 +0200)
committerPaul Smith <psmith@gnu.org>
Sun, 28 Nov 2021 19:27:10 +0000 (14:27 -0500)
commit71eb0a80384617b553546228648f1f1926f43977
treecec3080c5ffff94ce82811d1d45fec9af993f594
parentd9291d09b86228afd547d845460ba5b91577645f
Introduce $(intcmp ...) for numerical comparison

Numbers can come from $(words ...), automatic variables such as
$(MAKELEVEL), from environment variables, or from shell output such as
through $(shell expr ...).  The $(intcmp ...) function allows
conditional evaluation controlled by numerical variables.

* NEWS: Announce this feature.
* doc/make.texi (Functions for Conditionals): Document 'intcmp'.
* src/function.c (func_intcmp): Create the 'intcmp' built-in function.
* tests/scripts/functions/intcmp: Test the 'intcmp' built-in function.
NEWS
doc/make.texi
src/function.c
tests/scripts/functions/intcmp [new file with mode: 0644]