forked from warden-protocol/wardenprotocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (17 loc) · 967 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
VERSION=$(shell git describe --tags --always)
COMMIT=$(shell git rev-parse HEAD)
DIRTY=$(shell git diff --quiet || echo "-dirty")
FULL_VERSION=$(VERSION)$(DIRTY)
CHAIN_ID=wardenprotocol
OUTPUT_DIR=./build
LDFLAGS=-ldflags "-s -w -X github.com/cosmos/cosmos-sdk/version.Name=warden -X github.com/cosmos/cosmos-sdk/version.AppName=wardend -X github.com/cosmos/cosmos-sdk/version.Version=$(FULL_VERSION) -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) -X github.com/warden-protocol/wardenprotocol/cmd/wardenprotocold/cmd.ChainID=$(CHAIN_ID)"
build-all: build-wardend build-faucet build-wardenkms
build-wardend:
go build $(LDFLAGS) -o $(OUTPUT_DIR)/wardend ./cmd/wardend
install-wardend:
go install $(LDFLAGS) ./cmd/wardend
build-faucet:
go build $(LDFLAGS) -o $(OUTPUT_DIR)/faucet ./cmd/faucet
build-wardenkms:
go build $(LDFLAGS) -o $(OUTPUT_DIR)/wardenkms ./cmd/wardenkms
.PHONY: build-all build-wardend install-wardend build-faucet build-wardenkms