-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 658 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (24 loc) · 658 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
29
30
31
32
33
34
35
APP_NAME := wolt
MCP_NAME := wolt-mcp
VERSION ?= $(shell git describe --tags --always --dirty)
.PHONY: build mcp all run test race lint cover clean install-hooks
install-hooks:
./scripts/install-git-hooks.sh
build:
go build -trimpath -ldflags "-s -w -X main.version=$(VERSION)" -o bin/$(APP_NAME) ./cmd/wolt
mcp:
go build -trimpath -ldflags "-s -w -X main.version=$(VERSION)" -o bin/$(MCP_NAME) ./cmd/wolt-mcp
all: build mcp
run:
go run ./cmd/wolt --help
test:
go test ./...
race:
go test -race ./...
lint:
golangci-lint run
cover:
go test -coverprofile=coverage.out ./...
go tool cover -func=coverage.out
clean:
rm -rf bin coverage.out