-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (39 loc) · 1.05 KB
/
Makefile
File metadata and controls
47 lines (39 loc) · 1.05 KB
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
.POSIX:
.SUFFIXES:
.SUFFIXES: .sh
PY = python3
PREFIX = /usr
USER = 0
M = \
setup.py\
follow.py\
graph.py\
kahan.py\
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
case '$(USER)' in \
0) '$(PY)' setup.py install ;; \
*) '$(PY)' setup.py install --user ;; \
esac
lmsolve:
mkdir -p -- '$(PREFIX)/share' '$(PREFIX)/bin'
cp -- msolve/ioDir/MeshCyprusTM.mphtxt '$(PREFIX)/share'
(cd msolve/MSolveApp/ISAAR.MSolve.MSolve4Korali && \
DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet publish --nologo --configuration Release --output '$(PREFIX)/bin')
lkorali:
(cd korali && \
git clone --quiet --single-branch https://github.com/cselab/korali && \
(cd korali && git checkout c70d8e32258b7e2b9ed977576997dfe946816419) && \
make install 'USER = $(USER)')
.sh:
sed 's,%mph%,"$(PREFIX)"/share/MeshCyprusTM.mphtxt,g' $< > $@
chmod a+x $@
clean:
rm -rf $B korali/korali
cd msolve/MSolveApp/ISAAR.MSolve.MSolve4Korali && \
DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet clean --nologo