Skip to content
Snippets Groups Projects
Unverified Commit 2fac2270 authored by Benjamin Bollen's avatar Benjamin Bollen
Browse files

make: add commit-sha to build targets

parent bd67d8e5
No related branches found
No related tags found
No related merge requests found
# do not vendor in dependencies
vendor
# build target
target
# Temporary / cached
*.swp
debug
......
......@@ -6,6 +6,7 @@ GOFILES_NOVENDOR := $(shell find . -type f -name '*.go' -not -path "./vendor/*")
PACKAGES_NOVENDOR := $(shell go list github.com/eris-ltd/eris-db/... | grep -v /vendor/)
VERSION_MIN := $(shell cat ./version/version.go | tail -n 1 | cut -d \ -f 4 | tr -d '"')
VERSION_MAJ := $(shell echo ${VERSION_MIN} | cut -d . -f 1-2)
COMMIT_SHA := $(shell echo `git rev-parse --short --verify HEAD`)
BUILD_DIR?=target
.PHONY: greet
......@@ -58,12 +59,12 @@ build_race: build_race_db build_race_client build_race_keys
# build eris-db
.PHONY: build_db
build_db:
go build -o ${BUILD_DIR}/eris-db ./cmd/eris-db
go build -o ${BUILD_DIR}/eris-db-${COMMIT_SHA} ./cmd/eris-db
# build eris-client
.PHONY: build_client
build_client:
go build -o ${BUILD_DIR}/eris-client ./client/cmd/eris-client
go build -o ${BUILD_DIR}/eris-client-${COMMIT_SHA} ./client/cmd/eris-client
# build eris-keys
.PHONY: build_keys
......@@ -73,12 +74,12 @@ build_keys:
# build eris-db with checks for race conditions
.PHONY: build_race_db
build_race_db:
go build -race -o ${BUILD_DIR}/eris-db ./cmd/eris-db
go build -race -o ${BUILD_DIR}/eris-db-${COMMIT_SHA} ./cmd/eris-db
# build eris-client with checks for race conditions
.PHONY: build_race_client
build_race_client:
go build -race -o ${BUILD_DIR}/eris-client ./client/cmd/eris-client
go build -race -o ${BUILD_DIR}/eris-client-${COMMIT_SHA} ./client/cmd/eris-client
# build eris-keys with checks for race conditions
.PHONY: build_race_keys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment