From f99f2ff7b24f9c23d6d4a1fb11e991870c7535ea Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Mon, 10 Oct 2022 18:03:38 +0530 Subject: [PATCH] Add a simple build command to build using Makefile --- src/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Makefile b/src/Makefile index ebb59cd019..c7f7c656b7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,6 +8,10 @@ BAD_LINT_MSG := "Missing golangci-lint version $(WANTED_LINT_VERSION). Visit $(I .PHONY: check-lint check-lint-version lint +build: + go build -o corso -ldflags \ + "-X 'github.com/alcionai/corso/src/cli/version.Version=$(shell git describe --exact-match --tags $(git rev-parse HEAD) 2>/dev/null || echo unreleased)-$(shell git rev-parse --short HEAD)'" + lint: check-lint-version golangci-lint run