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}