-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 520 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (24 loc) · 520 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
.PHONY: build clean install test
BINARY_NAME=sysmetrics-mcp
INSTALL_PATH=/usr/local/bin
build:
mkdir -p bin
CGO_ENABLED=0 go build -o bin/$(BINARY_NAME) ./cmd/sysmetrics-mcp
clean:
rm -f bin/$(BINARY_NAME)
go clean
install: build
sudo cp bin/$(BINARY_NAME) $(INSTALL_PATH)/
sudo chmod +x $(INSTALL_PATH)/$(BINARY_NAME)
uninstall:
sudo rm -f $(INSTALL_PATH)/$(BINARY_NAME)
test:
CGO_ENABLED=0 go test -v ./...
fmt:
go fmt ./...
lint:
golangci-lint run
go vet ./...
deps:
go mod download
go mod tidy