From de6d7d6f258f5b5fae2906219df7ecfd188295b9 Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Fri, 19 Jan 2018 21:24:41 +0100 Subject: [PATCH] Makefile: Get rid of test for-loop Tests could now be run in parallel. Additionally, single tests can be run by simply using "make testname", i.e. "make chatter" would run the chatter test. Signed-off-by: Kai Krakow --- test/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Makefile b/test/Makefile index 9940173..d2b87a8 100644 --- a/test/Makefile +++ b/test/Makefile @@ -10,7 +10,6 @@ PROGRAMS = \ all: test test: $(PROGRAMS) Makefile - set -x; for prog in $(PROGRAMS); do ./$$prog || exit 1; done include ../makeflags @@ -31,9 +30,10 @@ include depends.mk @echo "Implicit rule %.o: %.cc" $(CXX) $(CXXFLAGS) -o $@ -c $< -%: %.o ../makeflags Makefile +$(PROGRAMS): %: %.o ../makeflags Makefile @echo "Implicit rule %: %.o" $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) + ./$@ clean: - rm -fv *.o + rm -fv $(PROGRAMS:%=%.o) $(PROGRAMS)