2020-04-12 00:18:00 +00:00
|
|
|
# Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved.
|
2019-10-22 21:36:22 +00:00
|
|
|
|
|
|
|
DOCKER ?= docker
|
|
|
|
MKDIR ?= mkdir
|
2020-05-14 19:27:34 +00:00
|
|
|
DIST_DIR ?= $(CURDIR)/dist
|
2019-10-22 21:36:22 +00:00
|
|
|
|
2020-05-14 19:27:34 +00:00
|
|
|
LIB_NAME := nvidia-container-toolkit
|
2020-07-24 20:02:06 +00:00
|
|
|
LIB_VERSION := 1.3.0
|
|
|
|
LIB_TAG ?= rc.1
|
2019-10-22 21:36:22 +00:00
|
|
|
|
2020-05-14 19:27:34 +00:00
|
|
|
GOLANG_VERSION := 1.14.2
|
2020-07-24 11:40:24 +00:00
|
|
|
GOLANG_PKG_PATH := github.com/NVIDIA/nvidia-container-toolkit/pkg
|
2020-04-12 00:18:00 +00:00
|
|
|
|
2020-05-14 19:27:34 +00:00
|
|
|
# By default run all native docker-based targets
|
|
|
|
docker-native:
|
2020-04-12 00:18:00 +00:00
|
|
|
include $(CURDIR)/docker.mk
|
|
|
|
|
|
|
|
binary:
|
2020-05-14 19:27:34 +00:00
|
|
|
go build -ldflags "-s -w" -o "$(LIB_NAME)" $(GOLANG_PKG_PATH)
|