forked from boutproject/BOUT-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
117 lines (93 loc) · 4.17 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
BOUT_TOP = $(PWD)
DIRS = src
DIRS_CLEAN = tests/integrated tests/unit tests/MMS
TARGET ?= libfast
include make.config
# For compatibility ignore shared
shared: libfast
######################################################################
# Tests
######################################################################
check-unit-tests: libfast
@export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH}; $(MAKE) --no-print-directory -C tests/unit check
check-mms-tests: libfast
+@cd tests/MMS; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite_make
+@cd tests/MMS; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite
check-mms-tests-all: libfast
+@cd tests/MMS; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite_make --all
+@cd tests/MMS; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite --all
check-integrated-tests: libfast
+@cd tests/integrated; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite_make
+@cd tests/integrated; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite
check-integrated-tests-all: libfast
+@cd tests/integrated; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite_make --all
+@cd tests/integrated; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite --all
check: build-check
+@cd tests; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite
check-all: build-check-all
+@cd tests; export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH} ; \
PYTHONPATH=${PWD}/tools/pylib/:${PYTHONPATH} \
OMPI_MCA_rmaps_base_oversubscribe=yes ./test_suite --all
build-check-unit-tests: libfast
@$(MAKE) --no-print-directory -C tests/unit
build-check-mms-tests: libfast
$(MAKE) --no-print-directory -C tests/MMS
build-check-mms-tests-all: libfast
$(MAKE) --no-print-directory -C tests/MMS all-all
build-check-integrated-tests: libfast
$(MAKE) --no-print-directory -C tests/integrated
build-check-integrated-tests-all: libfast
$(MAKE) --no-print-directory -C tests/integrated all-all
build-check: build-check-integrated-tests build-check-mms-tests build-check-unit-tests
build-check-all: build-check-integrated-tests-all build-check-mms-tests-all build-check-unit-tests
# Build the .mo files needed for Natural Language Support (gettext)
.PHONY: locale
locale:
$(MAKE) -C locale
######################################################################
# Releases
######################################################################
.PHONY: dist changelog
# Makes the tarball BOUT++-v<version>.tar.gz
dist:
@bin/bout-archive-helper.sh v$(BOUT_VERSION)
CHANGELOG_ERR_MESSAGE := "Run like: make changelog TOKEN=<token> LAST_VERSION=vX.Y.Z RELEASE_BRANCH=master|next"
# Updates CHANGELOG.md, needs some arguments:
#
# make changelog TOKEN=<token> LAST_VERSION=vX.Y.Z RELEASE_BRANCH=master|next
#
# Note: You should probably only run this if you are a maintainer (and
# also know what you're doing)!
changelog:
ifndef TOKEN
$(error $(CHANGELOG_ERR_MESSAGE))
endif
ifndef LAST_VERSION
$(error $(CHANGELOG_ERR_MESSAGE))
endif
ifndef RELEASE_BRANCH
$(error $(CHANGELOG_ERR_MESSAGE))
endif
github_changelog_generator -t $(TOKEN) --since-tag \
$(LAST_VERSION) --no-issues --max-issues 700 \
--base CHANGELOG.md --future-release v$(BOUT_VERSION) \
--release-branch $(RELEASE_BRANCH) \
--user boutproject --project BOUT-dev