Merge branch '21388-arvados-3.0-distros-docs'
[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 GOTARBALL_=DOES_NOT_EXIST
33 NODETARBALL_=DOES_NOT_EXIST
34 GOVERSION=$(shell grep 'const goversion =' ../../lib/install/deps.go |awk -F'"' '{print $$2}')
35 GOTARBALL_x86_64=go$(GOVERSION).linux-amd64.tar.gz
36 NODETARBALL_x86_64=node-v12.22.12-linux-x64.tar.xz
37 GOTARBALL_aarch64=go$(GOVERSION).linux-arm64.tar.gz
38 NODETARBALL_aarch64=node-v12.22.12-linux-arm64.tar.xz
39
40 # Get the bash variable $HOSTTYPE (this requires the SHELL line above)
41 HOSTTYPE=$(shell echo $${HOSTTYPE})
42
43 GOTARBALL=${GOTARBALL_$(HOSTTYPE)}
44 NODETARBALL=${NODETARBALL_$(HOSTTYPE)}
45
46 common-generated-all: common-generated/$(GOTARBALL) common-generated/$(NODETARBALL)
47
48 common-generated/$(GOTARBALL): common-generated
49         wget -cqO common-generated/$(GOTARBALL) https://dl.google.com/go/$(GOTARBALL)
50
51 common-generated/$(NODETARBALL): common-generated
52         wget -cqO common-generated/$(NODETARBALL) https://nodejs.org/dist/v12.22.12/$(NODETARBALL)
53
54 common-generated:
55         mkdir common-generated