Makefile.am 8.31 KB
Newer Older
1
2
3
4
5
6
7
MODFILES = \
	ramst.mod \
	ramst_a.mod \
	example1.mod \
	example2.mod \
	example1_use_dll.mod \
	example1_with_tags.mod \
Houtan Bastani's avatar
Houtan Bastani committed
8
	example1_irf_shocks.mod \
Houtan Bastani's avatar
Houtan Bastani committed
9
	example1_abs_sign.mod \
10
	example1_macroif.mod \
11
12
13
	t_sgu_ex1.mod \
	osr_example.mod \
	optimal_policy/ramsey.mod \
14
	optimal_policy/nk_ramsey.mod \
15
16
	optimal_policy/nk_ramsey_expectation.mod \
	optimal_policy/nk_ramsey_expectation_a.mod \
17
18
19
20
	optimal_policy/mult_elimination_test.mod \
	discretionary_policy/dennis_1.mod \
	ramst_initval_file.mod \
	ramst_normcdf_and_friends.mod \
MichelJuillard's avatar
MichelJuillard committed
21
	ramst_vec.mod \
22
23
24
25
26
27
28
	example1_varexo_det.mod \
	predetermined_variables.mod \
	fs2000_nonstationary.mod \
	fs2000_ssfile.mod \
	comments.mod \
	histval_sto.mod \
	histval_det.mod \
29
	auxiliary_variables/test1.mod \
30
	expectations/expectation.mod \
31
32
	expectations/expectation_ss.mod \
	expectations/expectation_ss_old.mod \
33
	expectations/expectation_nested.mod \
34
35
36
37
	steady_state/walsh1_initval.mod \
	steady_state/walsh1_old_ss.mod \
	steady_state/walsh1_ssm.mod \
	steady_state/walsh1_ssm_block.mod \
Houtan Bastani's avatar
Houtan Bastani committed
38
	steady_state/multi_leads.mod \
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
	steady_state_operator/standard.mod \
	steady_state_operator/use_dll.mod \
	steady_state_operator/block.mod \
	steady_state_operator/bytecode_test.mod \
	block_bytecode/ireland.mod \
	block_bytecode/ramst_normcdf_and_friends.mod \
	k_order_perturbation/fs2000k2a.mod \
	k_order_perturbation/fs2000k2_use_dll.mod \
	k_order_perturbation/fs2000k_1_use_dll.mod \
	k_order_perturbation/fs2000k3_use_dll.mod \
	k_order_perturbation/fs2000k2_m.mod \
	k_order_perturbation/fs2000k_1_m.mod \
	k_order_perturbation/fs2000k3_m.mod \
	partial_information/PItest3aHc0PCLsimModPiYrVarobsAll.mod \
	partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR.mod \
	arima/mod1.mod \
	arima/mod1a.mod \
	arima/mod1b.mod \
	arima/mod1c.mod \
	arima/mod2.mod \
	arima/mod2a.mod \
	arima/mod2b.mod \
	arima/mod2c.mod \
	fs2000/fs2000.mod \
	fs2000/fs2000a.mod \
	fs2000/fs2000c.mod \
65
	fs2000/fs2000d.mod \
Sébastien Villemot's avatar
Sébastien Villemot committed
66
	fs2000/fs2000_cmaes.mod \
Sébastien Villemot's avatar
Sébastien Villemot committed
67
	fs2000/fs2000_calib.mod \
68
	fs2000/fs2000_analytic_derivation.mod \
69
	fs2000/fs2000_particle.mod \
70
	fs2000/fs2000_missing_data.mod \
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
	homotopy/homotopy1_test.mod \
	homotopy/homotopy2_test.mod \
	homotopy/homotopy3_test.mod \
	bvar_a_la_sims/bvar_standalone.mod \
	bvar_a_la_sims/bvar_and_dsge.mod \
	AIM/fs2000x10L9_L.mod \
	AIM/fs2000x10L9_L_AIM.mod \
	AIM/fs2000x10_L9_L.mod \
	AIM/fs2000x10_L9_L_AIM.mod \
	AIM/fs2000_b1L1L.mod \
	AIM/fs2000_b1L1L_AIM.mod \
	AIM/ls2003_2L0L.mod \
	AIM/ls2003_2L0L_AIM.mod \
	AIM/ls2003_2L2L.mod \
	AIM/ls2003_2L2L_AIM.mod \
	conditional_variance_decomposition/example1.mod \
	dsge-var/simul_hybrid.mod \
	dsge-var/dsgevar_forward_calibrated_lambda.mod \
	dsge-var/dsgevar_forward_estimated_lambda.mod \
	external_function/example1_1st_and_2nd_deriv_functions_provided.mod \
	external_function/example1_1st_and_2nd_deriv_functions_provided_dll.mod \
	external_function/example1_1st_deriv_function_provided.mod \
	external_function/example1_1st_deriv_function_provided_dll.mod \
	external_function/example1_no_deriv_functions_provided.mod \
	external_function/example1_no_deriv_functions_provided_dll.mod \
	seeds.mod \
97
98
99
	gsa/ls2003.mod \
	identification/kim/kim2.mod \
	identification/as2007/as2007.mod \
Houtan Bastani's avatar
Houtan Bastani committed
100
101
102
	simul/example1.mod \
	conditional_forecasts/fs2000_cal.mod \
	conditional_forecasts/fs2000_est.mod \
103
104
	recursive/ls2003.mod \
	recursive/ls2003_bayesian.mod \
Houtan Bastani's avatar
Houtan Bastani committed
105
106
107
108
109
110
111
	ms-sbvar/test_exclusions.mod \
	ms-sbvar/test_exclusions_nc.mod \
	ms-sbvar/test_lower_cholesky.mod \
	ms-sbvar/test_lower_cholesky_a.mod \
	ms-sbvar/test_lower_cholesky_nc.mod \
	ms-sbvar/test_upper_cholesky.mod \
	ms-sbvar/test_upper_cholesky_nc.mod \
112
	ms-sbvar/test_ms_variances.mod \
MichelJuillard's avatar
MichelJuillard committed
113
	ms-sbvar/test_ms_variances_repeated_runs.mod \
Michel Juillard's avatar
Michel Juillard committed
114
	kalman_filter_smoother/gen_data.mod \
MichelJuillard's avatar
MichelJuillard committed
115
116
117
118
119
120
121
122
123
124
125
126
	kalman_filter_smoother/algo1.mod \
	kalman_filter_smoother/algo2.mod \
	kalman_filter_smoother/algo3.mod \
	kalman_filter_smoother/algo4.mod \
	kalman_filter_smoother/algo4a.mod \
	kalman_filter_smoother/algo4b.mod \
	kalman_filter_smoother/algoH1.mod \
	kalman_filter_smoother/algoH2.mod \
	kalman_filter_smoother/algoH3.mod \
	kalman_filter_smoother/fs2000.mod \
	kalman_filter_smoother/fs2000_1.mod \
	kalman_filter_smoother/fs2000_2.mod \
MichelJuillard's avatar
MichelJuillard committed
127
128
129
	kalman_filter_smoother/fs2000a.mod \
	second_order/burnside_1.mod \
	second_order/ds1.mod \
130
	second_order/ds2.mod \
131
	ep/rbc.mod \
132
	ep/rbc2.mod \
133
	ep/rbcii.mod \
134
135
	ep/linear.mod \
	deterministic_simulations/deterministic_model_purely_forward.mod \
136
	deterministic_simulations/deterministic_model_purely_backward.mod \
137
138
139
140
	deterministic_simulations/rbc_det1.mod \
	deterministic_simulations/rbc_det2.mod \
	deterministic_simulations/rbc_det3.mod \
	deterministic_simulations/rbc_det4.mod \
141
	deterministic_simulations/rbc_det5.mod \
142
143
	fs2000/fs2000_sd.mod \
	walsh.mod
144

145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
EXTRA_DIST = \
	$(MODFILES) \
	homotopy/common.mod \
	block_bytecode/ls2003.mod \
	fs2000_ssfile_aux.m \
	printMakeCheckMatlabErrMsg.m \
	printMakeCheckOctaveErrMsg.m \
	ramst_initval_file_data.m \
	run_test.m \
	run_test_matlab.m \
	run_test_octave.m \
	test.m \
	AIM/data_ca1.m \
	AIM/fs2000_b1L1L_AIM_steadystate.m \
	AIM/fs2000_b1L1L_steadystate.m \
	AIM/fsdat.m \
	block_bytecode/run_ls2003.m \
	bvar_a_la_sims/bvar_sample.m \
	external_function/extFunDeriv.m \
	external_function/extFunNoDerivs.m \
	external_function/extFunWithFirstAndSecondDerivs.m \
166
167
	expectations/expectation_ss_old_steadystate.m \
	steady_state/walsh1_old_ss_steadystate.m \
168
169
170
171
172
173
	fs2000/fs2000a_steadystate.m \
	fs2000/fsdat_simul.m \
	k_order_perturbation/run_fs2000kplusplus.m \
	ls2003/data_ca1.m \
	measurement_errors/data_ca1.m \
	missing/simulate_data_with_missing_observations.m \
Houtan Bastani's avatar
Houtan Bastani committed
174
	objectives/sgu_ex1.mat \
175
176
177
	conditional_forecasts/fsdat_simul.m \
	ms-sbvar/data.m \
	ms-sbvar/archive-files/ftd_2s_caseall_upperchol3v.m \
Sébastien Villemot's avatar
Sébastien Villemot committed
178
	ms-sbvar/archive-files/ftd_2s_caseall_upperchol4v.m \
179
180
181
182
183
184
185
186
187
188
189
190
	ms-sbvar/archive-files/ftd_2s_caseall_upperchol6v.m \
	ms-sbvar/archive-files/ftd_2s_caseall_upperchol7v.m \
	ms-sbvar/archive-files/ftd_RSvensson_4v.m \
	ms-sbvar/archive-files/ftd_cholesky.m \
	ms-sbvar/archive-files/ftd_non_rec_5v.m \
	ms-sbvar/archive-files/ftd_simszha5v.m \
	ms-sbvar/archive-files/ftd_upperchol3v.m \
	ms-sbvar/archive-files/ftd_upperchol4v.m \
	ms-sbvar/archive-files/ftd_upperchol5v.m \
	ms-sbvar/archive-files/ftd_upperchol6v.m \
	ms-sbvar/archive-files/ftd_upperchol7v.m \
	ms-sbvar/archive-files/specification_2v.dat \
191
	ms-sbvar/archive-files/specification_2v2c.dat \
MichelJuillard's avatar
MichelJuillard committed
192
	recursive/data_ca1.m \
MichelJuillard's avatar
MichelJuillard committed
193
	kalman_filter_smoother/fsdat_simul.m \
194
	kalman_filter_smoother/fs2000a_steadystate.m \
195
	identification/kim/kim2_steadystate.m \
196
	ep/mean_preserving_spread.m
197

198
TARGETS =
199
200
201
202
203
204
205
206
207
208
209
210

if HAVE_CMD_LINE_MATLAB
TARGETS += check-matlab
endif

if HAVE_OCTAVE
TARGETS += check-octave
endif

check-local: $(TARGETS)

check-matlab:
Sébastien Villemot's avatar
Sébastien Villemot committed
211
	DYNARE_VERSION="$(PACKAGE_VERSION)" MODFILES="$(MODFILES)" $(MATLAB)/bin/matlab -nodesktop -nosplash -r run_test_matlab
212
213

check-octave:
Sébastien Villemot's avatar
Sébastien Villemot committed
214
	DYNARE_VERSION="$(PACKAGE_VERSION)" MODFILES="$(MODFILES)" $(OCTAVE) --norc --silent --no-history run_test_octave.m
215

216
clean-local:
217
218
219
	rm -f $(patsubst %.mod, %.m, $(MODFILES)) \
		$(patsubst %.mod, %_static.*, $(MODFILES)) \
		$(patsubst %.mod, %_objective_static.m, $(MODFILES)) \
220
221
		$(patsubst %.mod, %_set_auxiliary_variables.m, $(MODFILES)) \
		$(patsubst %.mod, %_steadystate2.m, $(MODFILES)) \
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
		$(patsubst %.mod, %_dynamic.*, $(MODFILES))

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

	rm -rf $(patsubst %.mod, %, $(MODFILES))

	rm -f $(patsubst %.mod, %*.pdf, $(MODFILES)) \
		$(patsubst %.mod, %*.eps, $(MODFILES)) \
		$(patsubst %.mod, %*.fig, $(MODFILES))
238
239
240
241
242
243

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

244
245
	rm -f arima/data1.m arima/data2.m \
		k_order_perturbation/*.jnl \
246
		k_order_perturbation/*.mat
247
248

	rm -rf ramsey_objective
249

250
251
	rm -f fs2000_ssfile_steadystate.m

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

254
	rm -f dsge-var/datarabanal_hybrid.m
255
256

	rm -rf partial_information/PItest3aHc0PCLsimModPiYrVarobsAll_PCL* partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR_PCL*
257

Sébastien Villemot's avatar
Sébastien Villemot committed
258
259
260
261
	rm -rf block_bytecode/ls2003_tmp*

	rm -f $(shell find -name wsOct) \
		$(shell find -name wsMat.mat)
262

Sébastien Villemot's avatar
Sébastien Villemot committed
263
	rm -f run_test_matlab_output.txt run_test_octave_output.txt