Makefile.am 771 Bytes
Newer Older
1
SUBDIRS = preprocessor doc tests mex/sources
2

3
4
if HAVE_BLAS
if HAVE_LAPACK
5
if HAVE_MATIO
6
SUBDIRS += dynare++
7
8
endif
endif
9
endif
10

sebastien's avatar
sebastien committed
11
# MEX must be built after dynare++ (because of kordepert)
sebastien's avatar
sebastien committed
12
13
14
15
16
17
if ENABLE_MATLAB
SUBDIRS += mex/build/matlab
endif
if ENABLE_OCTAVE
SUBDIRS += mex/build/octave
endif
sebastien's avatar
sebastien committed
18

19
ACLOCAL_AMFLAGS = -I m4
sebastien's avatar
sebastien committed
20
21
22

EXTRA_DIST = \
	matlab \
23
	contrib \
24
	NEWS \
sebastien's avatar
sebastien committed
25
	license.txt \
26
	README.md \
sebastien's avatar
sebastien committed
27
	windows/dynare.nsi \
Sébastien Villemot's avatar
Sébastien Villemot committed
28
29
	windows/mexopts-win32.bat \
	windows/mexopts-win64.bat \
30
	windows/README.txt \
31
	osx \
32
33
	examples \
	scripts
sebastien's avatar
sebastien committed
34

35
dist-hook:
36
	rm -rf `find $(distdir)/matlab $(distdir)/examples -name *~`
37
	rm -f $(distdir)/matlab/dynare_m$(EXEEXT) $(distdir)/matlab/dynare_version.m
sebastien's avatar
sebastien committed
38
	$(MKDIR_P) $(distdir)/mex/matlab $(distdir)/mex/octave
39
	rm -rf `find $(distdir)/contrib -name '.git*'`