1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 01:29:46 +01:00
RIOT/makefiles/utils
Marian Buschsieweke 8c055f0f3e
makefiles/utils/strings.mk: Fix version_is_greater_or_equal
The Makefile function `version_is_greater_or_equal` is used to check if
a version of GNU Make is at least the required one. However, it has
the built-in assumption the version numbers have to format x.y.z,
but Alpine Linux currently ships GNU Make 4.4. This results in
`$(call _pad_number,3,)` which runs `printf '$03d' ''` in the shell,
which is not valid.

This fixes the issue by making `_pad_number` more robust by fall back to
printing `0` with the given padding, if the number given to print is
empty.
2023-01-12 12:03:28 +01:00
..
ansi_special.mk makefiles/utils/ansi: Refactor ansi codes into their own file. 2021-05-04 10:52:50 +02:00
ansi.mk makefiles/utils/ansi: Refactor ansi codes into their own file. 2021-05-04 10:52:50 +02:00
checks.mk makefiles/utils: Add a function for checking that a string is not empty. 2018-12-07 18:19:34 +01:00
strings.mk makefiles/utils/strings.mk: Fix version_is_greater_or_equal 2023-01-12 12:03:28 +01:00
test-checks.mk makefiles/utils: add tests for checks.mk. 2018-12-07 18:19:38 +01:00
test-strings.mk makefiles/utils/strings.mk: add version_greater_or_equal 2021-01-18 14:37:23 +01:00
test-variables.mk makefiles/utils: function to memoize a variable evaluation 2019-06-28 11:34:43 +02:00
variables.mk make: Add variable definitions for comma and space 2020-10-09 12:02:27 +02:00