-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (38 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
54 lines (38 loc) · 1.63 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
47
48
49
50
51
52
53
54
.PHONY: web tablet phone emu connect-tablet reload-web restart-web reload-tablet restart-tablet reload-phone restart-phone reload-emu restart-emu reload-all restart-all analyze
# Wireless tablet (SM X810). On tablet: Developer options → Wireless debugging → ON.
# Pair: make connect-tablet PAIR_HOST=192.168.0.169:PORT CODE=123456
# Then: make connect-tablet CONNECT_HOST=192.168.0.169:PORT
connect-tablet:
@./connect-tablet.sh status
@if [ -n "$(PAIR_HOST)" ] && [ -n "$(CODE)" ]; then ./connect-tablet.sh pair $(PAIR_HOST) $(CODE); fi
@if [ -n "$(CONNECT_HOST)" ]; then ./connect-tablet.sh connect $(CONNECT_HOST); fi
web:
./dev.sh web
tablet:
./dev.sh tablet
phone:
./dev.sh phone
emu:
./dev.sh emu
reload-web:
@echo r > /tmp/atomiccanvas_web_pipe
restart-web:
@echo R > /tmp/atomiccanvas_web_pipe
reload-tablet:
@echo r > /tmp/atomiccanvas_tablet_pipe
restart-tablet:
@echo R > /tmp/atomiccanvas_tablet_pipe
reload-phone:
@echo r > /tmp/atomiccanvas_phone_pipe
restart-phone:
@echo R > /tmp/atomiccanvas_phone_pipe
reload-emu:
@echo r > /tmp/atomiccanvas_emu_pipe
restart-emu:
@echo R > /tmp/atomiccanvas_emu_pipe
reload-all:
@echo r > /tmp/atomiccanvas_web_pipe 2>/dev/null; echo r > /tmp/atomiccanvas_tablet_pipe 2>/dev/null; echo r > /tmp/atomiccanvas_phone_pipe 2>/dev/null; echo r > /tmp/atomiccanvas_emu_pipe 2>/dev/null
restart-all:
@echo R > /tmp/atomiccanvas_web_pipe 2>/dev/null; echo R > /tmp/atomiccanvas_tablet_pipe 2>/dev/null; echo R > /tmp/atomiccanvas_phone_pipe 2>/dev/null; echo R > /tmp/atomiccanvas_emu_pipe 2>/dev/null
analyze:
@~/.local/share/mise/installs/flutter/3.22.1-stable/bin/flutter analyze lib/