12721: Omit cache dirs for platform A in package for platform B.
[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 all: centos7/generated debian8/generated debian9/generated ubuntu1204/generated ubuntu1404/generated ubuntu1604/generated
6
7 centos7/generated: common-generated-all
8         test -d centos7/generated || mkdir centos7/generated
9         cp -rlt centos7/generated common-generated/*
10
11 debian8/generated: common-generated-all
12         test -d debian8/generated || mkdir debian8/generated
13         cp -rlt debian8/generated common-generated/*
14
15 debian9/generated: common-generated-all
16         test -d debian9/generated || mkdir debian9/generated
17         cp -rlt debian9/generated common-generated/*
18
19 ubuntu1204/generated: common-generated-all
20         test -d ubuntu1204/generated || mkdir ubuntu1204/generated
21         cp -rlt ubuntu1204/generated common-generated/*
22
23 ubuntu1404/generated: common-generated-all
24         test -d ubuntu1404/generated || mkdir ubuntu1404/generated
25         cp -rlt ubuntu1404/generated common-generated/*
26
27 ubuntu1604/generated: common-generated-all
28         test -d ubuntu1604/generated || mkdir ubuntu1604/generated
29         cp -rlt ubuntu1604/generated common-generated/*
30
31 GOTARBALL=go1.8.3.linux-amd64.tar.gz
32 NODETARBALL=node-v6.11.2-linux-x64.tar.xz
33
34 common-generated-all: common-generated/$(GOTARBALL) common-generated/$(NODETARBALL)
35
36 common-generated/$(GOTARBALL): common-generated
37         wget -cqO common-generated/$(GOTARBALL) http://storage.googleapis.com/golang/$(GOTARBALL)
38
39 common-generated/$(NODETARBALL): common-generated
40         wget -cqO common-generated/$(NODETARBALL) https://nodejs.org/dist/v6.11.2/$(NODETARBALL)
41
42 common-generated:
43         mkdir common-generated