-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (54 loc) · 1.87 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
# Main Makefile for the repository of computational experiments
# based on euler1d code.
# Check that BUILD_DIR is given by a user as a command-line argument.
ifndef BUILD_DIR
$(error 'BUILD_DIR is not set. USAGE: make BUILD_DIR=<dirname>.')
endif
include config.mk
# List of all numerical experiments.
experiments := neutral-curves \
znd-solutions \
dmd-synthetic-data \
perturbations \
comparison-with-normal-modes \
verification \
raw-data \
eigval-neutral-curve \
eigval-znd-solutions \
eigval-migration \
eigval-perturbations \
eigval-thermicity
# Set PYTHONPATH to be able to use the solver's code and helpers.
export PYTHONPATH := ../code:..
# Set SAVE_FIGURES such that the figures are saved.
export SAVE_FIGURES := 1
# Used by matplotlib to determine parameters for plotting.
export MATPLOTLIBRC := ${CURDIR}/
# Used as a dependency for scripts that generate figures.
export matplotlibrc_file := ${MATPLOTLIBRC}/matplotlibrc
RM := rm -f
plot_scripts := $(shell find . -name "plot*.py")
# List of assets.
assets_list :=
.PHONY : all ${experiments}
all : ${experiments} | ${BUILD_DIR}
${BUILD_DIR} :
mkdir -p $@
.PHONY : clean
clean :
${RM} ${assets_list}
# Generic rule to make sure that all plot scripts depend on helpers module.
${plot_scripts} : helpers.py
touch $@
include neutral-curves/makefile.mk
include znd-solutions/makefile.mk
include dmd-synthetic-data/makefile.mk
include perturbations/makefile.mk
include comparison-with-normal-modes/makefile.mk
include verification/makefile.mk
include raw-data/makefile.mk
include eigval-neutral-curve/makefile.mk
include eigval-znd-solutions/makefile.mk
include eigval-migration/makefile.mk
include eigval-perturbations/makefile.mk
include eigval-thermicity/makefile.mk