forked from Project-HAMi/HAMi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (20 loc) · 561 Bytes
/
Makefile
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
GO=go
GO111MODULE=on
CMDS=scheduler device-plugin vGPUmonitor nvidia-container-runtime
OUTPUT_DIR=bin
VERSION ?= unknown
all: build
docker:
docker build . -f=docker/Dockerfile
tidy:
$(GO) mod tidy
proto:
$(GO) get github.com/gogo/protobuf/[email protected]
protoc --gofast_out=plugins=grpc:. ./pkg/api/*.proto
build: $(CMDS)
$(CMDS):
$(GO) build -ldflags '-s -w -X 4pd.io/k8s-vgpu/pkg/version.version=$(VERSION)' -o ${OUTPUT_DIR}/$@ ./cmd/$@
clean:
$(GO) clean -r -x ./cmd/...
-rm -rf $(OUTPUT_DIR)
.PHONY: all build docker clean $(CMDS)