DEVICE=vivoactive3 SDK=3.1.7 VERSION="0.0.3" OUTPUT=bin/mazarine_$(VERSION).prg MONKEY_SDK=~/CONNECTIQ CONNIQ=$(MONKEY_SDK)/bin/connectiq MONKEYC=$(MONKEY_SDK)/bin/monkeyc MONKEYDO=$(MONKEY_SDK)/bin/monkeydo PRIVATE_KEY=~/developer_key.der MANIFEST=manifest.xml RESOURCES := $(shell find resources/ -name "*.xml" -exec echo -n {}\ \; | tr " " ":") MDO := $(shell ps | grep -v grep | grep MonkeyDoDeux | awk '{print $1}') all: build run build: $(MONKEYC) \ -o $(OUTPUT) \ -w \ -y $(PRIVATE_KEY) \ -z $(RESOURCES) \ -m $(MANIFEST) \ source/*.mc \ -d $(DEVICE) \ -s $(SDK) run: #[ ! -z "$(MOD)" ] && kill -9 $(MOD) # $(CONNIQ) $(MONKEYDO) $(OUTPUT) $(DEVICE) & dev: notifyloop . make build run