-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
63 lines (45 loc) · 1.09 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
#simple automate
#specify PEBBLE_PHONE in .env file
include .env
babel:
rm -rf src/pkjs
npm run build
build: babel
pebble build -- --enable-debug
build-release: babel
rm -rf build
pebble build
test:
@gcc -c src/c/utils/linkedlist.c -DTESTS
# @gcc -c src/c/utils/ticktimerhelper.c -DTESTS
@gcc -c src/c/utils/timelib.c
@gcc -c src/c/test/tests.c -DTESTS
@gcc tests.o linkedlist.o timelib.o -lcunit -o lltest
@./lltest
@rm *.o
@rm lltest
emul: build
PEBBLE_PHONE="" pebble install --emulator aplite
emul_dio: build
PEBBLE_PHONE="" pebble install --emulator diorite
phone: build
pebble install --phone ${PEBBLE_PHONE}
loge:
PEBBLE_PHONE="" pebble logs --emulator aplite
loge_dio: wipe
PEBBLE_PHONE="" pebble logs --emulator diorite
logp:
pebble logs --phone ${PEBBLE_PHONE}
config:
PEBBLE_PHONE="" pebble emu-app-config
tap:
pebble emu-tap
wipe:
pebble wipe
shot:
PEBBLE_PHONE="" pebble screenshot --emulator aplite
shot_dio:
PEBBLE_PHONE="" pebble screenshot --emulator diorite
phone-release: build-release
pebble install --phone ${PEBBLE_PHONE}
.PHONY: test build