RHEL/CentOS 7, popular distributions that install GNU Make 3.82, reached EOM/EOL on June 30, 2024. While you may get extended support, it is a good time to raise the minimum GNU Make version. The new requirement, GNU Make 4.0, was released in October, 2013. I did not touch the Makefiles under tools/ because I do not know the requirements for building tools. I do not find any GNU Make version checks under tools/.
Showing the changes to scripts (1 of 3 files). Show all
Unified · Split
| @@ -68,7 +68,7 @@ kbuild-file = $(or $(wildcard $(src)/Kbuild),$(src)/Makefile) · 67 unmodified lines | |||
| 68 | # Read a file, replacing newlines with spaces | 68 | # Read a file, replacing newlines with spaces |
| 69 | # | 69 | # |
| 70 | # Make 4.2 or later can read a file by using its builtin function. | 70 | # Make 4.2 or later can read a file by using its builtin function. |
| 71 | ifneq ($(filter-out 3.% 4.0 4.1, $(MAKE_VERSION)),) | 71 | ifneq ($(filter-out 4.0 4.1, $(MAKE_VERSION)),) |
| 72 | read-file = $(subst $(newline),$(space),$(file < $1)) | 72 | read-file = $(subst $(newline),$(space),$(file < $1)) |
| 73 | else | 73 | else |
| 74 | read-file = $(shell cat $1 2>/dev/null) | 74 | read-file = $(shell cat $1 2>/dev/null) |