Audit with AI
This commit is contained in:
17
Makefile
17
Makefile
@@ -1,4 +1,7 @@
|
||||
.PHONY: run bench-select test
|
||||
.PHONY: run bench-select test build install
|
||||
|
||||
# Version can be set via: make build VERSION=v1.2.3
|
||||
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
|
||||
|
||||
run:
|
||||
go run ./cmd -o ./playground/db ./playground/schema.sql
|
||||
@@ -8,3 +11,15 @@ bench-select:
|
||||
|
||||
test:
|
||||
go test ./playground
|
||||
|
||||
# Build with version information
|
||||
build:
|
||||
go build -ldflags "-X main.version=$(VERSION)" -o pgm ./cmd
|
||||
|
||||
# Install to GOPATH/bin with version
|
||||
install:
|
||||
go install -ldflags "-X main.version=$(VERSION)" ./cmd
|
||||
|
||||
# Show current version
|
||||
version:
|
||||
@echo "Version: $(VERSION)"
|
||||
|
||||
Reference in New Issue
Block a user