diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2f80eb5 --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +DEVICE=vivoactive3 +SDK=3.1.7 +VERSION="0.0.1" +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 |