From 3e86e0c86659d0058fad3d508e16ba37e7ea78a1 Mon Sep 17 00:00:00 2001 From: PG1003 <34630287+PG1003@users.noreply.github.com> Date: Sat, 31 Oct 2020 22:57:09 +0100 Subject: [PATCH] Tweaked makefile Suppress messages when remove test with the clean rule. Renamed runtest rule to run. --- test/makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/makefile b/test/makefile index 65aa614..327e21f 100644 --- a/test/makefile +++ b/test/makefile @@ -11,7 +11,7 @@ all: test test: tests.cpp $(SRCDIR)/lex.cpp $(SRCDIR)/lex.h $(CXX) $(CXXFLAGS) $(INCLUDES) -o $@ tests.cpp $(SRCDIR)/lex.cpp -runtest : test +run : test @./test && : || { echo ">>> Test 1 failed!"; exit 1; } @echo " _" @echo " /(|" @@ -25,4 +25,4 @@ runtest : test # https://asciiart.website/index.php?art=people/body%20parts/hand%20gestures clean: - rm test + rm -f test