1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2019 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 ##############################################################################
19 build: clean test cover
20 CGO_ENABLED=0 GOOS=$(PLATFORM) GOARCH=amd64
21 go build -a -ldflags '-extldflags "-static"' \
22 -o $(PWD)/$(BINARY) cmd/manager/main.go
38 @go test -p 2 ./... -coverprofile=coverage.out
39 @go tool cover -html=coverage.out -o coverage.html