-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (42 loc) · 1.31 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
VERSION ?= 0.0.1
REGISTRY ?= quay.io
ORG ?= krsacme
# Copied from coreos-assembler
GOARCH := $(shell uname -m)
ifeq ($(GOARCH),x86_64)
GOARCH = amd64
else ifeq ($(GOARCH),aarch64)
GOARCH = arm64
endif
# vim: noexpandtab ts=8
export GOPATH=$(shell echo $${GOPATH:-$$HOME/go})
export GO111MODULE
export GOPROXY=https://proxy.golang.org
export OVSDPDK_GO_PACKAGE=github.com/krsacme/ovsdpdk-network-operator
#### TARGETS
default: build
operator-sdk:
@if ! type -p operator-sdk ; \
then if [ ! -d $(GOPATH)/src/github.com/operator-framework/operator-sdk ] ; \
then git clone https://github.com/operator-framework/operator-sdk --branch master $(GOPATH)/src/github.com/operator-framework/operator-sdk ; \
fi ; \
cd $(GOPATH)/src/github.com/operator-framework/operator-sdk ; \
make dep ; \
make install ; \
fi
generate: operator-sdk
hack/update-codegen.sh
build: ovsdpdk-network-operator ovsdpdk-network-prepare
ovsdpdk-network-operator:
WHAT=ovsdpdk-network-operator hack/build-go.sh
ovsdpdk-network-prepare:
WHAT=ovsdpdk-network-prepare hack/build-go.sh
image:
REGISTRY=${REGISTRY} ORG=${ORG} VERSION=${VERSION} hack/build-image.sh
dev image-dev: build
DEV=true REGISTRY=${REGISTRY} ORG=${ORG} VERSION=${VERSION} hack/build-image.sh
check test:
hack/test-go.sh ${PKGS}
.PHONY: clean
clean:
@rm -rf _output