-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
67 lines (59 loc) · 1.79 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
.POSIX:
.SUFFIXES:
.SUFFIXES: .sh
PY = python3
PREFIX = /usr
USER = 0
D = https://download.visualstudio.microsoft.com/download/pr/01292c7c-a1ec-4957-90fc-3f6a2a1e5edc/025e84c4d9bd4aeb003d4f07b42e9159/dotnet-sdk-6.0.418-linux-x64.tar.gz
M = \
follow.py\
graph.py\
kahan.py\
pyproject.toml\
remote.py\
setup.cfg\
B = \
bin/bio\
all: lbin lib
lbin: $B
mkdir -p -- '$(PREFIX)/bin'
for i in $B; do cp -- "$$i" '$(PREFIX)/bin' || exit 2; done
lib: $M
'$(PY)' -m pip install .
ldotnet:
wget -q '$D' && \
mkdir -p -- '$(PREFIX)/bin' && \
tar zxf dotnet-sdk-6.0.418-linux-x64.tar.gz -C '$(PREFIX)/bin'
lmsolve:
mkdir -p -- '$(PREFIX)/share'
cp -- \
msolve/CSparse.dll \
msolve/DotNumerics.dll \
msolve/MGroup.Constitutive.ConvectionDiffusion.dll \
msolve/MGroup.Constitutive.Structural.dll \
msolve/MGroup.FEM.ConvectionDiffusion.dll \
msolve/MGroup.FEM.dll \
msolve/MGroup.FEM.Structural.dll \
msolve/MGroup.LinearAlgebra.Distributed.dll \
msolve/MGroup.LinearAlgebra.dll \
msolve/MGroup.MSolve4Korali.dll \
msolve/MGroup.MSolve4Korali.runtimeconfig.json \
msolve/MGroup.MSolve.Core.dll \
msolve/MGroup.NumericalAnalyzers.Discretization.dll \
msolve/MGroup.NumericalAnalyzers.dll \
msolve/MGroup.Solvers.dll \
msolve/Triangle.dll \
msolve/RealisticMeshWithTetElements.mphtxt \
msolve/RealisticMeshWithTetElements_t_nodes_initialCs.csv \
msolve/RealisticMeshWithTetElements_TumorCoordinates.csv \
'$(PREFIX)/share'
lkorali:
cd korali && make 'USER = $(USER)' install
.sh:
sed \
-e 's,%mph%,"$(PREFIX)"/share/RealisticMeshWithTetElements.mphtxt,g' \
-e 's,%csv%,"$(PREFIX)"/share/RealisticMeshWithTetElements_t_nodes_initialCs.csv,g' \
-e 's,%tumor%,"$(PREFIX)"/share/RealisticMeshWithTetElements_TumorCoordinates.csv,g' \
-e 's,%dll%,"$(PREFIX)"/share/MGroup.MSolve4Korali.dll,g' \
$< > $@
chmod a+x $@