-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 906 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (21 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
APP := agentskeleton
PKG := ./cmd/agentskeleton
VERSION ?= dev
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
DATE ?= $(shell date -u +%Y-%m-%d)
LDFLAGS := -X github.com/Super-Sky/AgentSkeleton/internal/app.Version=$(VERSION) -X github.com/Super-Sky/AgentSkeleton/internal/app.Commit=$(COMMIT) -X github.com/Super-Sky/AgentSkeleton/internal/app.Date=$(DATE)
.PHONY: build test smoke release-build clean new-validation-report
build:
go build -o $(APP) $(PKG)
test:
go test ./...
smoke:
sh scripts/smoke_test.sh
release-build:
go build -ldflags "$(LDFLAGS)" -o $(APP) $(PKG)
new-validation-report:
@echo "usage: make new-validation-report HOST=codex FILE=codex-scenario-3 TITLE='Codex Validation Report: Scenario 3'"
@test -n "$(HOST)" && test -n "$(FILE)" && test -n "$(TITLE)"
sh scripts/new_validation_report.sh "$(HOST)" "$(FILE)" "$(TITLE)"
clean:
rm -f $(APP)