Files
compute-blade-agent/Makefile
Matthias Riegler 500a1a32d4 feat/fix: add linear fan speed control based on temperature
some smaller fixes

Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
2023-09-04 19:59:33 +02:00

38 lines
533 B
Makefile

all: lint
.PHONY: run
run:
go run cmd/agent/main.go
.PHONY: lint
lint:
golangci-lint run
.PHONY: test
test:
go test ./... -v
.PHONY: generate
generate: buf
$(BUF) generate
release:
goreleaser release --clean
snapshot:
goreleaser release --snapshot --skip-publish --clean
# Dependencies
LOCALBIN ?= $(shell pwd)/bin
$(LOCALBIN):
mkdir -p $(LOCALBIN)
BUF ?= $(LOCALBIN)/buf
BUF_VERSION ?= v1.25.0
.PHONY: buf
buf: $(BUF)
$(BUF): $(LOCALBIN)
GOBIN=$(LOCALBIN) go install github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION)