git-project-manager/Makefile
Ryan D McGuire 870760443e
All checks were successful
Build and Publish / release (push) Successful in 1m6s
Add version to build
2024-12-31 20:51:04 -05:00

23 lines
528 B
Makefile

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 -ldflags "-X gitea.libretechconsulting.com/rmcguire/git-project-manager/cmd.Version=$(VERSION)" -o bin/${CMD_NAME}
install:
go install -v -ldflags "-X gitea.libretechconsulting.com/rmcguire/git-project-manager/cmd.Version=$(VERSION)" .
docs:
bin/${CMD_NAME} docs md
clean:
rm -rf bin/${CMD_NAME}