-
Notifications
You must be signed in to change notification settings - Fork 163
/
Makefile
38 lines (30 loc) · 920 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
.PHONY: all test testv clean fmt
.PHONY: swapserver swaporacle
GOBIN = ./build/bin
GOCMD = env GO111MODULE=on GOPROXY=https://goproxy.io,direct go
swapserver:
$(GOCMD) run build/ci.go install ./cmd/swapserver
@echo "Done building."
@echo "Run \"$(GOBIN)/swapserver\" to launch swapserver."
swaporacle:
$(GOCMD) run build/ci.go install ./cmd/swaporacle
@echo "Done building."
@echo "Run \"$(GOBIN)/swaporacle\" to launch swaporacle."
all:
$(GOCMD) build -v ./...
$(GOCMD) run build/ci.go install ./cmd/...
@echo "Done building."
@echo "Find binaries in \"$(GOBIN)\" directory."
@echo ""
@echo "Copy config-example.toml and config-tokens-example.toml to \"$(GOBIN)\" directory"
@cp params/config-example.toml $(GOBIN)
@cp params/config-tokenpair-example.toml $(GOBIN)
test: all
$(GOCMD) test ./...
testv: all
$(GOCMD) test -v ./...
clean:
$(GOCMD) clean -cache
rm -fr $(GOBIN)/*
fmt:
./gofmt.sh