-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (44 loc) · 1.45 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Connection
COMM_PATH := ~/github/pebble-pc-communication-example/host_python
VENV_PATH := $(COMM_PATH)/venv/bin
PYTHON2 := $(VENV_PATH)/python
DOWNLOAD := $(PYTHON2) $(COMM_PATH)/pebble_download.py
UPLOAD := $(PYTHON2) $(COMM_PATH)/pebble_upload.py
TRANSLATE_BINARY := $(PYTHON2) $(COMM_PATH)/translate_binary.py
CONN_PATH := ./connection
CONN_CONF_WATCH := $(CONN_PATH)/config_watch.ini
CONN_CONF_EMU := $(CONN_PATH)/config_emu.ini
PEBBLE_SRC := ./pebble_app
# Evaluation
EVAL_PROJECT := ./evaluation/evaluation.fsproj
EVAL_CONF := -c ./evaluation/Config/Config.yaml
EVAL_RUN := dotnet run --project=$(EVAL_PROJECT) --
EVAL_PREPARE := -u prepare-next-session
EVAL_MERGE := -u merge-feedback
all:
@echo "Please choose explicitly a target."
init_app:
cp $(PEBBLE_SRC)/package.example.json $(PEBBLE_SRC)/package.json
# Pebble
install_emu: init_app
cd pebble_app && pebble build && pebble install --logs --emulator aplite
install_watch: init_app
cd pebble_app && pebble build && pebble install --serial /dev/rfcomm0
# Connection
upload_emu:
$(UPLOAD) $(CONN_CONF_EMU)
upload_watch:
$(UPLOAD) $(CONN_CONF_WATCH)
download_emu:
$(DOWNLOAD) $(CONN_CONF_EMU)
download_watch:
$(DOWNLOAD) $(CONN_CONF_WATCH)
translate_binary_emu:
$(TRANSLATE_BINARY) $(CONN_CONF_EMU)
translate_binary_watch:
$(TRANSLATE_BINARY) $(CONN_CONF_WATCH)
# Evaluation
prepare_next_session:
$(EVAL_RUN) $(EVAL_CONF) $(EVAL_PREPARE)
merge_feedback:
$(EVAL_RUN) $(EVAL_CONF) $(EVAL_MERGE)