blob: 2f80eb5e79fb277c05e78ff0342e0bed32fa6072 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|