-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 1001 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
# vim: set ft=make ts=8 noet
.PHONY: help
help: ### Get some help about make targets.
### this screen. Keep it first target to be default
ifeq ($(UNAME), Linux)
@grep -P '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
else
@awk -F ':.*###' '$$0 ~ FS {printf "%15s%s\n", $$1 ":", $$2}' \
$(MAKEFILE_LIST) | grep -v '@awk' | sort
endif
.PHONY: init
init: ### Runs initialization script
./init.sh
.PHONY: docker-build
docker-build: ### Build docker image
docker build -t stellartalk:latest .
.PHONY: install
install: ### Install stellartalk binaries in your $GOPATH/bin folder.
go install ./cmd/stellartalkd
start: ### start the chain
stellartalkd start
.PHONY: docker-run
docker-run: docker-build ### Run docker container with tag stellartalk:latest
docker run stellartalk:latest
.PHONY: lint
lint: ### Run linter.
golangci-lint run
.PHONY: test
test: ### Run tests.
go test -v --cover "./..."