-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (51 loc) · 1.19 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
65
66
67
68
69
all: clean test build run
clean:
rm -rf zeth
rm -rf Zeth/
rm -rf ./**/.ethereum
# cargo clean
.PHONY: clean
test:
# TODO
.PHONY: test
db:
docker run --rm -it --name surrealdb \
-v ${PWD}/Zeth:/Zeth/ \
-p 8000:8000 \
surrealdb/surrealdb:latest \
start --log trace --user admin --pass admin file://Zeth/zeth.db
.PHONY: client
client:
cd client && yarn dev
.PHONY: client
server:
cargo run
.PHONY: server
build:
cargo build
.PHONY: build
run:
cargo run
.PHONY: run
data:
# TODO
# ./scripts/register_nodes.sh
.PHONY: data
# run:
# cargo run
# watch:
# cargo watch --quiet --clear --exec 'run --quiet'
# build:
# cargo build
# build-release:
# cargo build --release
# test:
# cargo test
# docker-build:
# docker build -t zeeshans/slim:prayer-alarm-rust .
# docker-run:
# docker run --rm -it -e PULSE_SERVER=host.docker.internal -p 3000:3000 --mount type=bind,source=${HOME}/.config/pulse,target=/home/pulseaudio/.config/pulse zeeshans/prayer-alarm-rust
# docker-build-rpi:
# docker build -t zeeshans/slim:prayer-alarm-rust -f rpi.Dockerfile .
# docker-run-rpi:
# docker run --rm -it --device /dev/snd --security-opt seccomp=unconfined -p 3000:3000 zeeshans/slim:prayer-alarm-rust