2024-12-19 19:51:26 +00:00
|
|
|
CMD_NAME := git-project-manager
|
|
|
|
|
|
|
|
.PHONY: all test build install docs clean
|
|
|
|
|
2025-01-01 01:51:04 +00:00
|
|
|
VERSION ?= development # Default to "development" if VERSION is not set
|
|
|
|
|
2024-12-19 19:51:26 +00:00
|
|
|
all: test build install docs
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -v ./...
|
|
|
|
|
|
|
|
build: test
|
2025-01-01 01:51:04 +00:00
|
|
|
go build -ldflags "-X gitea.libretechconsulting.com/rmcguire/git-project-manager/cmd.Version=$(VERSION)" -o bin/${CMD_NAME}
|
2024-12-19 19:51:26 +00:00
|
|
|
|
|
|
|
install:
|
2025-01-01 01:51:04 +00:00
|
|
|
go install -v -ldflags "-X gitea.libretechconsulting.com/rmcguire/git-project-manager/cmd.Version=$(VERSION)" .
|
2024-12-19 19:51:26 +00:00
|
|
|
|
|
|
|
docs:
|
|
|
|
bin/${CMD_NAME} docs md
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf bin/${CMD_NAME}
|