forked from NVIDIA/nvidia-container-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (35 loc) · 1.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
.PHONY: all
all: ubuntu18.04 ubuntu16.04 ubuntu14.04 debian9 debian8 centos7 amzn2 amzn1
# Build all packages for a specific distribution.
ubuntu18.04: runtime-ubuntu18.04 hook-ubuntu18.04
ubuntu16.04: runtime-ubuntu16.04 hook-ubuntu16.04
ubuntu14.04: runtime-ubuntu14.04 hook-ubuntu14.04
debian9: runtime-debian9 hook-debian9
debian8: runtime-debian8 hook-debian8
centos7: runtime-centos7 hook-centos7
amzn2: runtime-amzn2 hook-amzn2
amzn1: runtime-amzn1 hook-amzn1
base-%:
make -C $(CURDIR)/base $*
hook-%: base-%
make -C $(CURDIR)/hook $*
runtime-%: base-%
make -C $(CURDIR)/runtime $*
# Build nvidia-container-runtime for specific versions of docker.
%-runtime-ubuntu18.04: base-ubuntu18.04
make -C $(CURDIR)/runtime $*-ubuntu18.04
%-runtime-ubuntu16.04: base-ubuntu16.04
make -C $(CURDIR)/runtime $*-ubuntu16.04
%-runtime-ubuntu14.04: base-ubuntu14.04
make -C $(CURDIR)/runtime $*-ubuntu14.04
%-runtime-debian9: base-debian9
make -C $(CURDIR)/runtime $*-debian9
%-runtime-debian8: base-debian8
make -C $(CURDIR)/runtime $*-debian8
%-runtime-centos7: base-centos7
make -C $(CURDIR)/runtime $*-centos7
%-runtime-amzn2: base-amzn2
make -C $(CURDIR)/runtime $*-amzn2
%-runtime-amzn1: base-amzn1
make -C $(CURDIR)/runtime $*-amzn1