-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 1.38 KB
/
Copy pathMakefile
File metadata and controls
47 lines (38 loc) · 1.38 KB
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
DEVICE = fenix3_hr
SDK_HOME = /data/sports/garmin/connect-iq-sdk
DEPLOY = /media/mash/GARMIN/GARMIN/APPS/
SUPPORTED_DEVICES_LIST = d2bravo d2bravo_titanium fenix3 fenix3_hr fenix5 fenix5s fenix5x fenixchronos fr230 fr235 fr630 fr735xt fr920xt vivoactive vivoactive_hr
PRIVATE_KEY = /data/sports/garmin/connect-iq-sdk/developer_key.der
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 -m manifest.xml \
-z $(resources) \
-y $(PRIVATE_KEY) \
-d $(DEVICE) $(sources)
buildall:
@for device in $(SUPPORTED_DEVICES_LIST); do \
echo "-----"; \
echo "Building for" $$device; \
$(SDK_HOME)/bin/monkeyc --warn --output bin/$(appName)-$$device.prg -m manifest.xml \
-z $(resources) \
-y $(PRIVATE_KEY) \
-d $$device $(sources); \
done
run: build
$(SDK_HOME)/bin/monkeydo bin/$(appName).prg $(DEVICE)
runall: build
@for device in $(SUPPORTED_DEVICES_LIST); do \
echo "running on $$device"; \
$(SDK_HOME)/bin/monkeydo bin/$(appName).prg $$device; \
done
deploy: build
@cp bin/$(appName).prg $(DEPLOY)
package:
@$(SDK_HOME)/bin/monkeyc --warn -e --output bin/$(appName).iq -m manifest.xml \
-z $(resources) \
-y $(PRIVATE_KEY) \
$(sources) -r
sim:
@$(SDK_HOME)/bin/connectiq &