22 lines
445 B
Makefile
22 lines
445 B
Makefile
TESTS=$(wildcard ??-*.sh)
|
|
TESTLOGS=$(sort $(patsubst %.sh,%.testlog,$(TESTS)))
|
|
|
|
CONTIKI=../..
|
|
|
|
all: clean summary
|
|
|
|
summary: cooja $(TESTLOGS)
|
|
@cat *.testlog > summary
|
|
@echo "========== Summary =========="
|
|
@cat summary
|
|
|
|
%.testlog: %.sh cooja
|
|
@bash "$(basename $@).sh" "$(CONTIKI)"
|
|
|
|
clean:
|
|
@rm -f *.*log report summary
|
|
|
|
cooja: $(CONTIKI)/tools/cooja/dist/cooja.jar
|
|
$(CONTIKI)/tools/cooja/dist/cooja.jar:
|
|
(cd $(CONTIKI)/tools/cooja; ant jar)
|