-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
84 lines (72 loc) · 2.28 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# ---------------------------------------------------------------------
#
# Copyright (C) 2020 by the deal.II authors
#
# This file is part of the deal.II library.
#
# The deal.II library is free software; you can use it, redistribute
# it, and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# The full text of the license can be found in the file LICENSE.md at
# the top level directory of deal.II.
#
# ---------------------------------------------------------------------
ARCH=$(shell uname -m)
ifeq ($(ARCH),arm64)
PLATFORM=linux/arm64
else ifeq ($(ARCH),x86_64)
PLATFORM=linux/amd64
ARCH=amd64
endif
DOCKER_BUILD=docker buildx build --push --platform $(PLATFORM) --output type=registry
dependencies-jammy:
$(DOCKER_BUILD) \
-t dealii/dependencies:jammy-${ARCH} \
-t dealii/dependencies:jammy-v9.6.0-${ARCH} \
--build-arg IMG=jammy \
--build-arg VERSION=9.6.0-1~ubuntu22.04.1~ppa1 \
--build-arg REPO=ppa:ginggs/deal.ii-9.6.0-backports \
./dependencies
dependencies-noble:
$(DOCKER_BUILD) \
-t dealii/dependencies:noble-${ARCH} \
-t dealii/dependencies:noble-v9.6.0-${ARCH} \
-t dealii/dependencies:latest-${ARCH} \
--build-arg IMG=noble \
--build-arg VERSION=9.6.0-1~ubuntu24.04.1~ppa1 \
--build-arg REPO=ppa:ginggs/deal.ii-9.6.0-backports \
./dependencies
dependencies-%-merge::
docker buildx imagetools create -t dealii/dependencies:$* \
dealii/dependencies:$*-arm64 \
dealii/dependencies:$*-amd64
%-merge::
docker buildx imagetools create -t dealii/dealii:$* \
dealii/dealii:$*-arm64 \
dealii/dealii:$*-amd64
v9.6.2-noble:
$(DOCKER_BUILD) \
-t dealii/dealii:v9.6.2-noble-${ARCH} \
-t dealii/dealii:latest-${ARCH} \
--build-arg IMG=noble \
--build-arg VER=v9.6.2 \
--build-arg NJOBS=12 \
./dealii
v9.6.2-jammy:
$(DOCKER_BUILD) \
-t dealii/dealii:v9.6.2-jammy-${ARCH} \
--build-arg IMG=jammy \
--build-arg VER=v9.6.2 \
--build-arg NJOBS=12 \
./dealii
noble: dependencies-noble v9.6.2-noble
jammy: dependencies-jammy v9.6.2-jammy
all: noble jammy
.PHONY: all \
dependencies-jammy \
dependencies-noble \
dependencies-%-merge \
%-merge \
v9.6.2-jammy \
v9.6.2-noble