forked from rizon-world/rizon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 1.12 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
25
26
27
28
29
30
31
32
33
34
35
BINDIR ?= $(GOPATH)/bin
VERSION := $(shell git describe --tags)
COMMIT := $(shell git log -1 --format='%H')
BUILDTAGS := $(shell uname)
TM_VERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=rizon \
-X github.com/cosmos/cosmos-sdk/version.AppName=rizond \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(BUILDTAGS)" \
-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TM_VERSION)
.PHONY: install protocgen update-swagger-docs
all: install
update-swagger-docs: statik
$(BINDIR)/statik -src=client/docs/swagger-ui -dest=client/docs -f -m
@if [ -n "$(git status --porcelain)" ]; then \
echo "\033[91mSwagger docs are out of sync!!!\033[0m";\
exit 1;\
else \
echo "\033[92mSwagger docs are in sync\033[0m";\
fi
install: go.sum
go install -mod=readonly -ldflags '$(ldflags)' ./cmd/rizond
go.sum: go.mod
@go mod verify
@go mod tidy
protocgen:
bash ./scripts/protocgen.sh