mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 05:45: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:
parent
63f249f005
commit
de6d7d6f25
@ -10,7 +10,6 @@ PROGRAMS = \
|
|||||||
all: test
|
all: test
|
||||||
|
|
||||||
test: $(PROGRAMS) Makefile
|
test: $(PROGRAMS) Makefile
|
||||||
set -x; for prog in $(PROGRAMS); do ./$$prog || exit 1; done
|
|
||||||
|
|
||||||
include ../makeflags
|
include ../makeflags
|
||||||
|
|
||||||
@ -31,9 +30,10 @@ include depends.mk
|
|||||||
@echo "Implicit rule %.o: %.cc"
|
@echo "Implicit rule %.o: %.cc"
|
||||||
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
%: %.o ../makeflags Makefile
|
$(PROGRAMS): %: %.o ../makeflags Makefile
|
||||||
@echo "Implicit rule %: %.o"
|
@echo "Implicit rule %: %.o"
|
||||||
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
|
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
|
||||||
|
./$@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fv *.o
|
rm -fv $(PROGRAMS:%=%.o) $(PROGRAMS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user