-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
36 lines (27 loc) · 974 Bytes
/
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
# This Makefile is to build the OOMMF (and extensions)
# that are in this repository / the working directory
#
# To update the OOMMF sources or extensions, please
# use Makefile-update-oommf .
#
OOMMF_ROOT="oommf"
OOMMFTCL=$(OOMMF_ROOT)/oommf.tcl
#
# Compile OOMMF and extensions
#
build:
cd $(OOMMF_ROOT) && ./oommf.tcl pimake distclean
cd $(OOMMF_ROOT) && ./oommf.tcl pimake upgrade
cd $(OOMMF_ROOT) && ./oommf.tcl pimake
# Run some examples as a smoke test
test-all:
tclsh $(OOMMFTCL) boxsi +fg oommf/app/oxs/examples/stdprob3.mif -exitondone 1
tclsh $(OOMMFTCL) boxsi +fg oommf/app/oxs/examples/stdprob4.mif -exitondone 1
# Carry out the above steps in a container (for better reproducibility)
in-docker:
docker build --file Dockerfile --no-cache -t dockertestimage .
docker run -ti -d --name testcontainer dockertestimage
docker exec testcontainer make build
docker exec testcontainer make test-all
docker stop testcontainer
docker rm testcontainer