forked from tdex-network/tdex-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 729 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
.PHONY: build clean fmt help install run vet
install:
@go mod download && go mod tidy
## build: build for current OS & Architecture
build:
@chmod u+x ./scripts/build-proxy && ./scripts/build-proxy
## crossbuild: build for all architectures for current OS
crossbuild:
@chmod u+x ./scripts/cross-build-proxy && ./scripts/cross-build-proxy
## clean: cleans the binary
clean:
@go clean
## fmt: Go Format
fmt:
@if [ -n "$(gofmt -l .)" ]; then echo "Go code is not formatted"; exit 1; fi
## help: prints this help message
help:
@echo "Usage: \n"
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
## run: Run proxy
run:
@go run ./rpc_proxy.go
## vet: code analysis
vet:
@go vet rpc_proxy.go