1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

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 <kai@kaishome.de>
This commit is contained in:
Kai Krakow 2018-01-19 21:24:41 +01:00 committed by Zygo Blaxell
parent 63f249f005
commit de6d7d6f25

View File

@ -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)