-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
46 lines (37 loc) · 1.29 KB
/
Makefile.in
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
# Nmag micromagnetic simulator
# Copyright (C) 2011 University of Southampton
# Hans Fangohr, Thomas Fischbacher, Matteo Franchin and others
#
# WEB: http://nmag.soton.ac.uk
# CONTACT: [email protected]
#
# AUTHOR(S) OF THIS FILE: Matteo Franchin
# LICENSE: GNU General Public License 2.0
# (see <http://www.gnu.org/licenses/>)
.PHONY: all all-log clean check checkslow checkmpi checkhlib checkall
NSIMEXEC=@BASH@ @SRCDIR@/bin/nsim-local
NSIM_PYTEST=$(NSIMEXEC) ./config/test.py
all install uninstall clean:
(cd src && $(MAKE) $@)
(cd bin && $(MAKE) $@)
(cd interface && $(MAKE) $@)
# The target below is used in the all-from-sources tarball.
all-log:
@echo "Now compiling Nmag."
@echo "Output is sent to the file 'compilation.log' in the Nmag" \
"source directory (typically nsim)."
@echo "In case of errors send a bug report as explained at" \
"https://nmag.soton.ac.uk/community/wiki/nmag/Bug_report"
@$(MAKE) all >compilation.log 2>&1 && echo "Compilation successful."
check:
@echo "Testing all reasonably fast tests".
@echo "Skipping tests with name test_slow* and test_mpi*".
$(NSIM_PYTEST) -k "-test_slow -test_mpi -test_hlib"
checkslow:
$(NSIM_PYTEST) -k test_slow
checkmpi:
$(NSIM_PYTEST) -k test_mpi
checkhlib:
$(NSIM_PYTEST) -k test_hlib
checkall:
$(NSIM_PYTEST)