Makefile.am 4.13 KB
Newer Older
1
DYNARE_ROOT = $(abs_top_srcdir)/matlab
2

3
MODS = \
4
5
6
	ramst.mod \
	ramst_a.mod \
	example1.mod \
7
	example2.mod \
8
	example1_use_dll.mod \
9
	t_sgu_ex1.mod \
10
	osr_example.mod \
Sébastien Villemot's avatar
Sébastien Villemot committed
11
12
	optimal_policy/ramsey.mod \
	optimal_policy/mult_elimination_test.mod \
13
	ramst_initval_file.mod \
14
	ramst_normcdf_and_friends.mod \
15
	example1_varexo_det.mod \
sebastien's avatar
sebastien committed
16
	predetermined_variables.mod \
17
	fs2000_ssfile.mod \
18
	comments.mod \
Sébastien Villemot's avatar
Sébastien Villemot committed
19
20
	histval_sto.mod \
	histval_det.mod \
21
22
23
24
	steady_state_operator/standard.mod \
	steady_state_operator/use_dll.mod \
	steady_state_operator/block.mod \
	steady_state_operator/bytecode_test.mod \
25
	block_bytecode/ireland.mod \
26
	block_bytecode/ramst_normcdf_and_friends.mod \
27
28
29
30
	k_order_perturbation/fs2000k2a.mod \
	k_order_perturbation/fs2000k2.mod \
	k_order_perturbation/fs2000k_1.mod \
	k_order_perturbation/fs2000k3.mod \
31
32
	partial_information/PItest3aHc0PCLsimModPiYrVarobsAll.mod \
	partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR.mod \
33
34
	arima/mod1.mod \
	arima/mod1a.mod \
35
36
	arima/mod1b.mod \
	arima/mod1c.mod \
37
	arima/mod2.mod \
38
39
	arima/mod2a.mod \
	arima/mod2b.mod \
40
41
	arima/mod2c.mod \
	fs2000/fs2000.mod \
42
	fs2000/fs2000a.mod \
43
	fs2000/fs2000c.mod \
sebastien's avatar
sebastien committed
44
45
46
	homotopy/homotopy1_test.mod \
	homotopy/homotopy2_test.mod \
	homotopy/homotopy3_test.mod \
47
	bvar_a_la_sims/bvar_standalone.mod \
sebastien's avatar
sebastien committed
48
49
50
51
	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
52
	AIM/fs2000x10_L9_L_AIM.mod \
53
54
55
56
57
58
	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 \
59
60
61
	conditional_variance_decomposition/example1.mod \
	dsge-var/simul_hybrid.mod \
	dsge-var/dsgevar_forward_calibrated_lambda.mod \
62
63
64
65
66
67
68
69
	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

70
71
EXTRA_DIST = $(MODS) \
	run_test_octave.m \
72
73
74
	block_bytecode/run_block_bytecode_tests.m \
	block_bytecode/run_ls2003.m \
	block_bytecode/ls2003.mod \
Sébastien Villemot's avatar
Sébastien Villemot committed
75
	fs2000/fsdat_simul.m \
sebastien's avatar
sebastien committed
76
77
78
79
	test.m \
	objectives \
	ramst_initval_file_data.m \
	homotopy/common.mod \
sebastien's avatar
sebastien committed
80
	bvar_a_la_sims/bvar_sample.m
81
82
83
84
85
86
87
88

TARGETS = check-matlab

if HAVE_OCTAVE
TARGETS += check-octave
endif

check-local: $(TARGETS)
89

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

97
98
99
100
check-block-bytecode:
	cd block_bytecode && $(OCTAVE) --norc --silent --no-history run_block_bytecode_tests.m $(DYNARE_ROOT) $(PACKAGE_VERSION)
.PHONY: check-block-bytecode

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

105
clean-local:
106
	rm -f $(patsubst %.mod, %.m, $(MODS)) \
107
		$(patsubst %.mod, %_static.*, $(MODS)) \
108
		$(patsubst %.mod, %_objective_static.m, $(MODS)) \
109
		$(patsubst %.mod, %_dynamic.*, $(MODS))
110
111
112
113
114
115
116

	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)) \
117
		$(patsubst %.mod, %_simul, $(MODS)) \
118
		$(patsubst %.mod, %.log, $(MODS))
119

120
121
122
123
124
125
126
127
128
129
130
	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)

131
132
	rm -f arima/data1.m arima/data2.m \
		k_order_perturbation/*.jnl \
133
		k_order_perturbation/*.mat
134
135

	rm -rf ramsey_objective
136

137
138
	rm -f fs2000_ssfile_steadystate.m

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

141
142
143
	rm -f dsge-var/datarabanal_hybrid.mat

	rm -rf partial_information/PItest3aHc0PCLsimModPiYrVarobsAll_PCL* partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR_PCL*
144
145

	rm -rf block_bytecode/ws block_bytecode/ls2003_tmp*