From 912d2f2856b47a28c222767f1225f884923f4bab Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 6 Nov 2007 19:56:27 +0000 Subject: [PATCH] Added CMOTES variable to make energy estimation demo scripts nicer --- tools/sky/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/sky/Makefile b/tools/sky/Makefile index 86419ef6c..837c453a1 100644 --- a/tools/sky/Makefile +++ b/tools/sky/Makefile @@ -9,6 +9,9 @@ ifdef OS MOTES = $(shell $(MOTELIST) | grep COM | \ cut -f 4 -d \ | \ perl -ne 'print $$1 - 1 . " " if(/COM(\d+)/);') + CMOTES = $(shell $(MOTELIST) | grep COM | \ + cut -f 4 -d \ | \ + perl -ne 'print $$1 . " " if(/COM(\d+)/);') endif endif @@ -19,6 +22,7 @@ ifndef MOTELIST MOTES = $(shell $(MOTELIST) | grep USB | \ cut -f 4 -d \ | \ perl -ne 'print $$1 . " " if(m-(/dev/\w+)-);') + CMOTES=$(MOTES) endif sky-motelist: