From 33996b4ac8f7f1c7eb1eb35046c4bd07bbc1996e Mon Sep 17 00:00:00 2001 From: Benjamin Bollen <ben@monax.io> Date: Fri, 25 Nov 2016 18:37:02 +0100 Subject: [PATCH] make: add first build targets --- Makefile | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 71eb33d8..f6658adf 100644 --- a/Makefile +++ b/Makefile @@ -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) +BUILD_DIR?=target .PHONY: greet greet: @@ -42,4 +43,25 @@ lint: .PHONY: vet vet: @echo "Running go vet." - @go vet ${PACKAGES_NOVENDOR} \ No newline at end of file + @go vet ${PACKAGES_NOVENDOR} + +### Building code + +# build all targets in github.com/eris-ltd/eris-db +.PHONY: build +build: build_db build_client build_keys + +# build eris-db +.PHONY: build_db +build_db: + go build -o ${BUILD_DIR}/eris-db ./cmd/eris-db + +# build eris-client +.PHONY: build_client +build_client: + go build -o ${BUILD_DIR}/eris-client ./client/cmd/eris-client + +# build eris-keys +.PHONY: build_keys +build_keys: + @echo "Marmots need to complete moving repository eris-keys into eris-db." -- GitLab