Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Add a simple build command to build using Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Oct 14, 2022
1 parent 737b43b commit f99f2ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f99f2ff

Please sign in to comment.