From 0a36b6e75ef0e7298c14989e4389992f56539ce1 Mon Sep 17 00:00:00 2001 From: girst Date: Thu, 19 Apr 2018 14:47:26 +0200 Subject: [PATCH] extend test target (-pedantic build) --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 225c6c5..821ae86 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,10 @@ define TESTS for myFILE in mines_2017.c schemes.h do sed 's/\t/ /g' < $$myFILE|grep -En --color=always '.{81}'|sed "s/^/\x1B[35m$$myFILE:/" done + + echo -e '\n\033[7m-Wall:\033[0m' + gcc mines_2017.c -o 2017mines -Wall -Werror -Wextra -pedantic -fdiagnostics-color=always endef export TESTS test: - sh -c "$$TESTS" |& less --RAW-CONTROL-CHARS --chop-long-lines + bash -c "$$TESTS" 2>&1| less --RAW-CONTROL-CHARS --chop-long-lines -- 2.39.3