Added CMOTES variable to make energy estimation demo scripts nicer

This commit is contained in:
adamdunkels 2007-11-06 19:56:27 +00:00
parent 366d845336
commit 912d2f2856

View file

@ -9,6 +9,9 @@ ifdef OS
MOTES = $(shell $(MOTELIST) | grep COM | \ MOTES = $(shell $(MOTELIST) | grep COM | \
cut -f 4 -d \ | \ cut -f 4 -d \ | \
perl -ne 'print $$1 - 1 . " " if(/COM(\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
endif endif
@ -19,6 +22,7 @@ ifndef MOTELIST
MOTES = $(shell $(MOTELIST) | grep USB | \ MOTES = $(shell $(MOTELIST) | grep USB | \
cut -f 4 -d \ | \ cut -f 4 -d \ | \
perl -ne 'print $$1 . " " if(m-(/dev/\w+)-);') perl -ne 'print $$1 . " " if(m-(/dev/\w+)-);')
CMOTES=$(MOTES)
endif endif
sky-motelist: sky-motelist: