forked from jctim/otp-ciq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (39 loc) · 1.13 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
44
45
46
47
48
include properties.mk
sources = `find source -name '*.mc'`
resources = `find resources* -name '*.xml' | tr '\n' ':' | sed 's/.$$//'`
appName = `grep entry manifest.xml | sed 's/.*entry="\([^"]*\).*/\1/'`
build:
$(SDK_HOME)/bin/monkeyc --warn --output bin/$(appName).prg \
-f ./monkey.jungle \
-y $(DEVELOPER_KEY) \
-d $(DEVICE)
build-test:
$(SDK_HOME)/bin/monkeyc --warn --output bin/$(appName)-test.prg \
-f ./monkey.jungle \
--unit-test \
-y $(DEVELOPER_KEY) \
-d $(DEVICE)
buildall:
@for device in $(SUPPORTED_DEVICES_LIST); do \
echo "-----"; \
echo "Building for" $$device; \
$(SDK_HOME)/bin/monkeyc --warn --output bin/$(appName)-$$device.prg \
-f ./monkey.jungle \
-y $(DEVELOPER_KEY) \
-d $$device; \
done
run: build
@$(SDK_HOME)/bin/connectiq &&\
$(SDK_HOME)/bin/monkeydo bin/$(appName).prg $(DEVICE)
test: build-test
@$(SDK_HOME)/bin/connectiq &&\
$(SDK_HOME)/bin/monkeydo bin/$(appName)-test.prg $(DEVICE) -t
clean:
@rm bin/*
deploy: build
@cp bin/$(appName).prg $(DEPLOY)
package:
@$(SDK_HOME)/bin/monkeyc --warn -e --output bin/$(appName).iq \
-f ./monkey.jungle \
-y $(DEVELOPER_KEY) \
-r