Fix top-level test makefile (which is not used in Travis), only intended for local use

This commit is contained in:
Simon Duquennoy 2017-11-13 16:22:10 +01:00
parent 27a04e14e6
commit 01e29b74e1

View File

@ -26,26 +26,20 @@
# SUCH DAMAGE.
TESTS=$(wildcard ??-*)
SUMMARIES=$(foreach test,$(TESTS),summary-$(test))
SUMMARIES=$(foreach test,$(TESTS),$(test)/summary)
CONTIKI=..
run: clean summary
summary: $(SUMMARIES)
grep '' $(SUMMARIES) > summary
@cat $(SUMMARIES) > $@
summary-%:
%/summary:
@make -C $* summary || true
@echo -n $* | cat - $*/summary > $@
@rm $*/summary
clean:
rm -f $(SUMMARIES)
cooja: $(CONTIKI)/tools/cooja/dist/cooja.jar
$(CONTIKI)/tools/cooja/dist/cooja.jar:
(cd $(CONTIKI)/tools/cooja; ant jar)
rm -f $(SUMMARIES) summary
scan-build:
cd scan_build && scan-build $(MAKE)