Makefile 765 字节
Newer Older
F
Felix Abecassis 已提交
1
# Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
F
Felix Abecassis 已提交
2 3 4

.PHONY: all

F
Felix Abecassis 已提交
5
all: xenial centos7 stretch
F
Felix Abecassis 已提交
6

7 8
# Build all packages for a specific distribution.
xenial: runtime-xenial hook-xenial
F
Felix Abecassis 已提交
9

10
centos7: runtime-centos7 hook-centos7
11

12
stretch: runtime-stretch hook-stretch
13

14 15
base-%: $(CURDIR)/base/Dockerfile.%
	make -C $(CURDIR)/base $*
F
Felix Abecassis 已提交
16

17 18
hook-%: base-% $(CURDIR)/hook/Dockerfile.%
	make -C $(CURDIR)/hook $*
F
Felix Abecassis 已提交
19

20 21
runtime-%: base-% $(CURDIR)/runtime/Dockerfile.%
	make -C $(CURDIR)/runtime $*
F
Felix Abecassis 已提交
22

23 24 25
# Build nvidia-container-runtime for specific versions of docker.
%-runtime-xenial: base-xenial
	make -C $(CURDIR)/runtime $*-xenial
F
Felix Abecassis 已提交
26

27 28
%-runtime-stretch: base-stretch
	make -C $(CURDIR)/runtime $*-stretch
F
Felix Abecassis 已提交
29

30 31
%-runtime-centos7: base-centos7
	make -C $(CURDIR)/runtime $*-centos7