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

.PHONY: all

5
all: xenial centos7 stretch amzn1
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
amzn1: runtime-amzn1 hook-amzn1

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

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

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

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

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

32 33
%-runtime-centos7: base-centos7
	make -C $(CURDIR)/runtime $*-centos7
34 35 36

%-runtime-amzn1: base-amzn1
	make -C $(CURDIR)/runtime $*-amzn1