Makefile.am 3.42 KB
Newer Older
1
DYNARE_ROOT = $(abs_top_srcdir)/matlab
2
3
4
5
6
7

# Under Octave we only test a subset of MOD files, because of missing features (models with unit roots, reading Excel files)
OCTAVE_MODS = \
	ramst.mod \
	ramst_a.mod \
	example1.mod \
8
	example2.mod \
9
	example1_use_dll.mod \
10
	t_sgu_ex1.mod \
11
	osr_example.mod \
Sébastien Villemot's avatar
Sébastien Villemot committed
12
13
	optimal_policy/ramsey.mod \
	optimal_policy/mult_elimination_test.mod \
14
	ramst_initval_file.mod \
15
16
	ramst_normcdf_and_friends.mod \
	ramst_steady_state.mod \
17
	example1_varexo_det.mod \
sebastien's avatar
sebastien committed
18
	predetermined_variables.mod \
19
	fs2000_ssfile.mod \
20
21
	block_bytecode/fs2000_simk.mod \
	block_bytecode/fs2000_lu.mod \
sebastien's avatar
sebastien committed
22
23
	block_bytecode/fs2000_bicgstab.mod \
	block_bytecode/fs2000_optpath.mod \
24
	block_bytecode/fs2000_bytecode.mod \
sebastien's avatar
sebastien committed
25
	block_bytecode/fs2000_block_bytecode.mod \
26
27
28
	block_bytecode/ramst.mod \
	block_bytecode/ireland.mod \
	block_bytecode/ls2003.mod \
29
30
	block_bytecode/ramst_normcdf_and_friends.mod \
	block_bytecode/ramst_steady_state.mod \
31
32
33
34
	k_order_perturbation/fs2000k2a.mod \
	k_order_perturbation/fs2000k2.mod \
	k_order_perturbation/fs2000k_1.mod \
	k_order_perturbation/fs2000k3.mod \
35
36
37
38
39
	arima/mod1.mod \
	arima/mod1a.mod \
	arima/mod2.mod \
	arima/mod2c.mod \
	fs2000/fs2000.mod \
sebastien's avatar
sebastien committed
40
41
42
	homotopy/homotopy1_test.mod \
	homotopy/homotopy2_test.mod \
	homotopy/homotopy3_test.mod \
43
	bvar_a_la_sims/bvar_standalone.mod \
sebastien's avatar
sebastien committed
44
45
46
47
	bvar_a_la_sims/bvar_and_dsge.mod \
	AIM/fs2000x10L9_L.mod \
	AIM/fs2000x10L9_L_AIM.mod \
	AIM/fs2000x10_L9_L.mod \
sebastien's avatar
sebastien committed
48
49
	AIM/fs2000x10_L9_L_AIM.mod \
	conditional_variance_decomposition/example1.mod
50
51
52
53
54
55

MODS = $(OCTAVE_MODS) \
	arima/mod1b.mod \
	arima/mod1c.mod \
	arima/mod2a.mod \
	arima/mod2b.mod \
sebastien's avatar
sebastien committed
56
57
58
59
60
61
	fs2000/fs2000a.mod \
	AIM/fs2000_b1L1L.mod \
	AIM/fs2000_b1L1L_AIM.mod \
	AIM/ls2003_2L0L.mod \
	AIM/ls2003_2L0L_AIM.mod \
	AIM/ls2003_2L2L.mod \
sebastien's avatar
sebastien committed
62
63
64
	AIM/ls2003_2L2L_AIM.mod \
	block_bytecode/fs2000_gmres.mod \
	block_bytecode/ramst_a.mod
65

66
67
EXTRA_DIST = $(MODS) \
	run_test_octave.m \
Sébastien Villemot's avatar
Sébastien Villemot committed
68
	fs2000/fsdat_simul.m \
sebastien's avatar
sebastien committed
69
70
71
72
73
	test.m \
	objectives \
	ramst_initval_file_data.m \
	homotopy/common.mod \
	block_bytecode/fs2000_common.mod \
sebastien's avatar
sebastien committed
74
	bvar_a_la_sims/bvar_sample.m
75
76
77
78
79
80
81
82

TARGETS = check-matlab

if HAVE_OCTAVE
TARGETS += check-octave
endif

check-local: $(TARGETS)
83
84
85
86

check-octave: $(OCTAVE_MODS)
	@set -e; \
		for modfile in $(OCTAVE_MODS); do \
87
			$(OCTAVE) --norc --silent --no-history run_test_octave.m $$modfile $(DYNARE_ROOT) $(PACKAGE_VERSION); \
88
89
90
91
92
93
94
		done
.PHONY: check-octave

check-matlab: $(MODS)
# MATLAB stuff to be added here
.PHONY: check-matlab

95
clean-local:
96
	rm -f $(patsubst %.mod, %.m, $(MODS)) \
97
		$(patsubst %.mod, %_static.*, $(MODS)) \
98
		$(patsubst %.mod, %_objective_static.m, $(MODS)) \
99
		$(patsubst %.mod, %_dynamic.*, $(MODS))
100
101
102
103
104
105
106

	rm -f $(patsubst %.mod, %_results.mat, $(MODS)) \
		$(patsubst %.mod, %_mode.mat, $(MODS)) \
		$(patsubst %.mod, %_mh_mode.mat, $(MODS)) \
		$(patsubst %.mod, %_mean.mat, $(MODS)) \
		$(patsubst %.mod, %_pindx.mat, $(MODS)) \
		$(patsubst %.mod, %_params.mat, $(MODS)) \
107
		$(patsubst %.mod, %_simul, $(MODS)) \
108
		$(patsubst %.mod, %.log, $(MODS))
109

110
111
112
113
114
115
116
117
118
119
120
	rm -rf $(patsubst %.mod, %, $(MODS))

	rm -f $(patsubst %.mod, %*.pdf, $(MODS)) \
		$(patsubst %.mod, %*.eps, $(MODS)) \
		$(patsubst %.mod, %*.fig, $(MODS))

	rm -f $(shell find -name g1.mat) \
		$(shell find -name g2.mat) \
		$(shell find -name g3.mat) \
		$(shell find -name H.dat)

121
122
	rm -f arima/data1.m arima/data2.m \
		k_order_perturbation/*.jnl \
123
		k_order_perturbation/*.mat \
124
125
126
		block_bytecode/fs2000_simk.swp

	rm -rf ramsey_objective
127

128
129
	rm -f fs2000_ssfile_steadystate.m

130
	rm -f $(shell find -name '*~')