-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
43 lines (35 loc) · 926 Bytes
/
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
BINARY_NAME=mindmachine
build:
go mod tidy
go build -o ${BINARY_NAME} cmd/mindmachine/*.go
install:
go mod tidy
go build -o ${BINARY_NAME} cmd/mindmachine/*.go
cp ${BINARY_NAME} ~/go/bin/
clean:
rm ${BINARY_NAME}
run:
go mod tidy
go run cmd/mindmachine/*.go
debug:
go mod tidy
~/go/bin/dlv debug cmd/mindmachine/*.go
debugreset:
cp -R ~/mindmachine/data/nostrelay ~/mindmachine/
rm -rf ~/mindmachine/data
mkdir ~/mindmachine/data
cp -R ~/mindmachine/nostrelay ~/mindmachine/data/
rm -rf ~/mindmachine/nostrelay
go mod tidy
~/go/bin/dlv debug cmd/mindmachine/*.go
reset:
cp -R ~/mindmachine/data/nostrelay ~/mindmachine/
rm -rf ~/mindmachine/data
mkdir ~/mindmachine/data
cp -R ~/mindmachine/nostrelay ~/mindmachine/data/
rm -rf ~/mindmachine/nostrelay
go mod tidy
go run cmd/mindmachine/*.go
clearconfig:
cp ~/mindmachine/config.yaml ~/mindmachine/config.yaml.old
rm ~/mindmachine/config.yaml