-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
45 lines (37 loc) · 962 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
44
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 &&\
sleep 3 &&\
$(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
clean:
@rm -rf bin/*