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

# 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 \
	t_sgu_ex1.mod \
9
	ramsey.mod \
10
11
	ramst_initval_file.mod \
	example1_varexo_det.mod \
12
13
14
15
16
	arima/mod1.mod \
	arima/mod1a.mod \
	arima/mod2.mod \
	arima/mod2c.mod \
	fs2000/fs2000.mod \
sebastien's avatar
sebastien committed
17
18
19
	homotopy/homotopy1_test.mod \
	homotopy/homotopy2_test.mod \
	homotopy/homotopy3_test.mod \
20
	bvar_a_la_sims/bvar_standalone.mod \
sebastien's avatar
sebastien committed
21
22
23
24
25
	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
26
27
28
29
30
31

MODS = $(OCTAVE_MODS) \
	arima/mod1b.mod \
	arima/mod1c.mod \
	arima/mod2a.mod \
	arima/mod2b.mod \
sebastien's avatar
sebastien committed
32
33
34
35
36
37
38
	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 \
	AIM/ls2003_2L2L_AIM.mod
39

40
41
EXTRA_DIST = $(MODS) \
	run_test_octave.m \
sebastien's avatar
sebastien committed
42
43
	fs2000/fsdat.m \
	bvar_a_la_sims/bvar_sample.m
44
45
46
47
48
49
50
51

TARGETS = check-matlab

if HAVE_OCTAVE
TARGETS += check-octave
endif

check-local: $(TARGETS)
52
53
54
55

check-octave: $(OCTAVE_MODS)
	@set -e; \
		for modfile in $(OCTAVE_MODS); do \
56
			$(OCTAVE) --norc --silent --no-history run_test_octave.m $$modfile $(DYNARE_ROOT) $(PACKAGE_VERSION); \
57
58
59
60
61
62
63
		done
.PHONY: check-octave

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

64
clean-local:
65
66
	rm -f $(patsubst %.mod, %.m, $(MODS)) \
		$(patsubst %.mod, %_static.m, $(MODS)) \
67
		$(patsubst %.mod, %_objective_static.m, $(MODS)) \
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
		$(patsubst %.mod, %_dynamic.m, $(MODS))

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

	rm -f arima/data1.m arima/data2.m

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