forked from CoHDI/composable-dra-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (35 loc) · 688 Bytes
/
Makefile
File metadata and controls
43 lines (35 loc) · 688 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
36
37
38
39
40
41
42
43
IMG_NAME ?= cdi-dra
IMG_TAG ?= latest
IMG ?= $(IMG_NAME):$(IMG_TAG)
# Directories
LOCALBIN ?= $(shell pwd)/bin
$(LOCALBIN):
mkdir -p $(LOCALBIN)
# Tooling
GO ?= go
# --------------------------
# Build Targets
# --------------------------
.PHONY: all
all: build
.PHONY: build
build:
$(GO) build -o $(LOCALBIN)/composable-dra-driver main.go
.PHONY: run
run:
$(GO) run main.go
# --------------------------
# Testing Targets
# --------------------------
.PHONY: test
test:
$(GO) test ./...
# --------------------------
# Image Management
# --------------------------
.PHONY: docker-build
docker-build:
docker build -t $(IMG) .
.PHONY: docker-push
docker-push:
docker push $(IMG)