build/prereq: require make 4.1 or later
authorPaul Spooren <mail@aparcar.org>
Sun, 13 Dec 2020 06:57:21 +0000 (20:57 -1000)
committerPaul Spooren <mail@aparcar.org>
Tue, 16 Feb 2021 02:35:49 +0000 (16:35 -1000)
commit6dba010157f2ac6485bb3dee6a5ed4450fb09463
tree57d4c96b67e9f7cf42d8c29e71c4e68bb60963ff
parent46b6ee7ffc457af8aad1a0f7e5936f50041141d8
build/prereq: require make 4.1 or later

FS#2086 "IS_TTY in the makefile is broken" reports flawed detection of
stdout piping to a file. The issue describes how e.g. terminal color
codes and up in log files if running make like `make > log.txt`.

The proposed solution uses the make variable "MAKE_TERMOUT", which was
introduced in make 4.1. All major distributions seem to updated to 4.1
or later, so this ideally dosen't break anything.

Signed-off-by: Paul Spooren <mail@aparcar.org>
README.md
include/prereq-build.mk