forked from lucasvr/garmin-doom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (37 loc) · 919 Bytes
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
include properties.mk
appName = `grep entry manifest.xml | sed 's/.*entry="\([^"]*\).*/\1/'`
devices = `grep 'iq:product id' manifest.xml | sed 's/.*iq:product id="\([^"]*\).*/\1/'`
build:
$(SDK_HOME)/bin/monkeyc \
-f ./monkey.jungle \
-d $(DEVICE) \
-o bin/$(appName).prg \
-y $(PRIVATE_KEY) \
-w \
-r
buildall:
@for device in $(devices); do \
echo "-----"; \
echo "Building for" $$device; \
$(SDK_HOME)/bin/monkeyc \
--jungles ./monkey.jungle \
--device $$device \
--output bin/$(appName)-$$device.prg \
--private-key $(PRIVATE_KEY) \
--warn \
--release \
--debug; \
done
run: build
@$(SDK_HOME)/bin/connectiq &
$(SDK_HOME)/bin/monkeydo bin/$(appName).prg $(DEVICE)
deploy: build
@cp bin/$(appName).prg $(DEPLOY)
package:
@$(SDK_HOME)/bin/monkeyc \
--jungles ./monkey.jungle \
--package-app \
--release \
--output bin/$(appName).iq \
--private-key $(PRIVATE_KEY) \
--warn