Adding cnishim and cniserver
[ovn4nfv-k8s-plugin.git] / Makefile
1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2018 Intel Corporation
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 GOPATH := $(shell realpath "$(PWD)/../../")
10
11 export GOPATH ...
12 export GO111MODULE=on
13
14 .PHONY: all 
15 all: clean nfn-operator  ovn4nfvk8s-cni nfn-agent
16
17 nfn-operator:
18         @go build -o build/bin/nfn-operator ./cmd/nfn-operator
19
20 ovn4nfvk8s-cni:
21         @go build -o build/bin/ovn4nfvk8s-cni ./cmd/ovn4nfvk8s-cni
22
23 nfn-agent:
24         @go build -o build/bin/nfn-agent ./cmd/nfn-agent
25
26 test:
27         @go test -v ./...
28
29 clean:
30         @rm -f build/bin/ovn4nfvk8s*
31         @rm -f build/bin/nfn-operator*
32         @rm -f build/bin/nfn-agent*
33