-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (37 loc) · 1.05 KB
/
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 \
--jungles ./monkey.jungle \
--device $(DEVICE) \
--output bin/$(appName).prg \
--private-key $(PRIVATE_KEY) \
--warn
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; \
done
run: build
@$(SDK_HOME)/bin/connectiq &&\
echo "Run on simulator $(DEVICE) ... (try again if fail to start)" &&\
$(SDK_HOME)/bin/monkeydo bin/$(appName).prg $(DEVICE)
deploy: build
@rm -f $(DEPLOY)/LOGS/$(appName).TXT &&\
touch $(DEPLOY)/LOGS/$(appName).TXT &&\
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