From e2c1bafafe06b87a8a7e9639ff427949f4adbf61 Mon Sep 17 00:00:00 2001 From: Jason Cox Date: Fri, 5 Jan 2024 13:54:02 -0500 Subject: sendemail-validate: try regular make if gmake not available Some OSes (e.g., Arch Linux) ship GNU Make but only provide the `make` executable. Signed-off-by: Jason Cox Acked-by: Robin Jarry --- contrib/sendemail-validate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/sendemail-validate b/contrib/sendemail-validate index dcab4aaa..ae29d05c 100755 --- a/contrib/sendemail-validate +++ b/contrib/sendemail-validate @@ -33,7 +33,8 @@ validate_patch () { export CFLAGS="-O0 -g -std=c99 -Wall -Wextra -Wconversion -Werror -Wformat-security -Wstack-protector -Wpedantic -Wmissing-prototypes" validate_series () { - gmake all tests lint check-patches + command -v gmake >/dev/null 2>&1 && make="gmake" || make="make" + $make all tests lint check-patches } # main ------------------------------------------------------------------------- -- cgit