21701: Update comments.
[arvados.git] / build / package-build-dockerfiles / Makefile
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 SHELL := '/bin/bash'
6
7 all: debian11/generated
8 debian11/generated: common-generated-all
9         test -d debian11/generated || mkdir debian11/generated
10         cp -f -rlt debian11/generated common-generated/*
11
12 all: debian12/generated
13 debian12/generated: common-generated-all
14         test -d debian12/generated || mkdir debian12/generated
15         cp -f -rlt debian12/generated common-generated/*
16
17 all: rocky8/generated
18 rocky8/generated: common-generated-all
19         test -d rocky8/generated || mkdir rocky8/generated
20         cp -f -rlt rocky8/generated common-generated/*
21
22 all: ubuntu2004/generated
23 ubuntu2004/generated: common-generated-all
24         test -d ubuntu2004/generated || mkdir ubuntu2004/generated
25         cp -f -rlt ubuntu2004/generated common-generated/*
26
27 all: ubuntu2204/generated
28 ubuntu2204/generated: common-generated-all
29         test -d ubuntu2204/generated || mkdir ubuntu2204/generated
30         cp -f -rlt ubuntu2204/generated common-generated/*
31
32 all: ubuntu2404/generated
33 ubuntu2404/generated: common-generated-all
34         test -d ubuntu2404/generated || mkdir ubuntu2404/generated
35         cp -f -rlt ubuntu2404/generated common-generated/*
36
37 GOTARBALL_=DOES_NOT_EXIST
38 NODETARBALL_=DOES_NOT_EXIST
39 GOVERSION=$(shell grep 'const goversion =' ../../lib/install/deps.go |awk -F'"' '{print $$2}')
40 GOTARBALL_x86_64=go$(GOVERSION).linux-amd64.tar.gz
41 NODETARBALL_x86_64=node-v12.22.12-linux-x64.tar.xz
42 GOTARBALL_aarch64=go$(GOVERSION).linux-arm64.tar.gz
43 NODETARBALL_aarch64=node-v12.22.12-linux-arm64.tar.xz
44
45 # Get the bash variable $HOSTTYPE (this requires the SHELL line above)
46 HOSTTYPE=$(shell echo $${HOSTTYPE})
47
48 GOTARBALL=${GOTARBALL_$(HOSTTYPE)}
49 NODETARBALL=${NODETARBALL_$(HOSTTYPE)}
50
51 common-generated-all: common-generated/$(GOTARBALL) common-generated/$(NODETARBALL)
52
53 common-generated/$(GOTARBALL): common-generated
54         wget -cqO common-generated/$(GOTARBALL) https://dl.google.com/go/$(GOTARBALL)
55
56 common-generated/$(NODETARBALL): common-generated
57         wget -cqO common-generated/$(NODETARBALL) https://nodejs.org/dist/v12.22.12/$(NODETARBALL)
58
59 common-generated:
60         mkdir common-generated