-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (21 loc) · 1.29 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
.PHONY: build
update-dev:
GOOS=linux GOARCH=amd64 go build -o uncloudd-linux-amd64 ./cmd/uncloudd && \
scp uncloudd-linux-amd64 [email protected]:~/ && \
ssh [email protected] sudo install ./uncloudd-linux-amd64 /usr/local/bin/uncloudd
scp uncloudd-linux-amd64 [email protected]:~/ && \
ssh [email protected] sudo install ./uncloudd-linux-amd64 /usr/local/bin/uncloudd
update-restart-dev:
GOOS=linux GOARCH=amd64 go build -o uncloudd-linux-amd64 ./cmd/uncloudd && \
scp uncloudd-linux-amd64 [email protected]:~/ && \
ssh [email protected] "sudo install ./uncloudd-linux-amd64 /usr/local/bin/uncloudd && sudo systemctl restart uncloud" && \
scp uncloudd-linux-amd64 [email protected]:~/ && \
ssh [email protected] "sudo install ./uncloudd-linux-amd64 /usr/local/bin/uncloudd && sudo systemctl restart uncloud"
reset-dev:
ssh [email protected] "sudo systemctl stop uncloud && sudo rm -rf /var/lib/uncloud"
ssh [email protected] "sudo systemctl stop uncloud && sudo rm -rf /var/lib/uncloud"
ssh [email protected] "sudo systemctl stop uncloud && sudo rm -rf /var/lib/uncloud"
.PHONY: proto
proto:
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative \
--proto_path=. --proto_path=internal/machine/api/vendor internal/machine/api/pb/*.proto