21 lines
511 B
Makefile
21 lines
511 B
Makefile
BINARY := task-master
|
|
CMD := ./cmd/task-master
|
|
VERSION_PKG := task/internal/version
|
|
GIT_HASH := $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
|
LDFLAGS := -X $(VERSION_PKG).BuildVersion=$(GIT_HASH)
|
|
|
|
.PHONY: build run version demo
|
|
|
|
build:
|
|
go build -ldflags "$(LDFLAGS)" -o bin/$(BINARY) $(CMD)
|
|
|
|
run: build
|
|
./bin/$(BINARY)
|
|
|
|
version: build
|
|
./bin/$(BINARY) version
|
|
|
|
# Record a full feature walkthrough (requires vhs: https://github.com/charmbracelet/vhs)
|
|
demo:
|
|
vhs demo.tape
|