-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72860f9
commit 4c4e5ae
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
all: build | ||
|
||
format: | ||
git describe --tags --abbrev=0 | sed 's/v//' > pkg/account/version.txt | ||
set-version: | ||
if TAG=$$(git describe --tags --abbrev=0); then echo "$${TAG}" | sed 's/v//' > pkg/account/version.txt; fi | ||
|
||
format: set-version | ||
go fmt ./... | ||
|
||
test: | ||
go test -cover ./... | ||
go vet ./... | ||
|
||
build: format test | ||
build: set-version test | ||
go build ./... | ||
|
||
install: format test | ||
install: test | ||
go install ./cmd/... | ||
|
||
.PHONY: install build test format | ||
.PHONY: install build test format set-version |