Add version to build
All checks were successful
Build and Publish / release (push) Successful in 1m6s
All checks were successful
Build and Publish / release (push) Successful in 1m6s
This commit is contained in:
6
Makefile
6
Makefile
@@ -2,16 +2,18 @@ CMD_NAME := git-project-manager
|
||||
|
||||
.PHONY: all test build install docs clean
|
||||
|
||||
VERSION ?= development # Default to "development" if VERSION is not set
|
||||
|
||||
all: test build install docs
|
||||
|
||||
test:
|
||||
go test -v ./...
|
||||
|
||||
build: test
|
||||
go build -o bin/${CMD_NAME}
|
||||
go build -ldflags "-X gitea.libretechconsulting.com/rmcguire/git-project-manager/cmd.Version=$(VERSION)" -o bin/${CMD_NAME}
|
||||
|
||||
install:
|
||||
go install -v .
|
||||
go install -v -ldflags "-X gitea.libretechconsulting.com/rmcguire/git-project-manager/cmd.Version=$(VERSION)" .
|
||||
|
||||
docs:
|
||||
bin/${CMD_NAME} docs md
|
||||
|
||||
Reference in New Issue
Block a user