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
|
|
|
|
LIB_VERSION := 1.0.5
|
2019-10-22 21:36:22 +00:00
|
|
|
|
2020-05-14 19:27:34 +00:00
|
|
|
GOLANG_VERSION := 1.14.2
|
|
|
|
GOLANG_PKG_PATH := github.com/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)
|