2010-02-13 09:52:43 +01:00
|
|
|
SUBDIRS = preprocessor doc tests mex/sources
|
2009-09-09 18:47:43 +02:00
|
|
|
|
2009-09-11 19:34:15 +02:00
|
|
|
if HAVE_BLAS
|
|
|
|
if HAVE_LAPACK
|
2012-08-23 18:30:27 +02:00
|
|
|
if HAVE_MATIO
|
2010-02-13 09:52:43 +01:00
|
|
|
SUBDIRS += dynare++
|
2009-09-11 19:34:15 +02:00
|
|
|
endif
|
|
|
|
endif
|
2012-08-23 18:30:27 +02:00
|
|
|
endif
|
2009-09-11 19:34:15 +02:00
|
|
|
|
2009-09-23 15:14:05 +02:00
|
|
|
# MEX must be built after dynare++ (because of kordepert)
|
2009-11-02 14:44:45 +01:00
|
|
|
if ENABLE_MATLAB
|
|
|
|
SUBDIRS += mex/build/matlab
|
|
|
|
endif
|
|
|
|
if ENABLE_OCTAVE
|
|
|
|
SUBDIRS += mex/build/octave
|
|
|
|
endif
|
2009-09-23 15:14:05 +02:00
|
|
|
|
2009-09-09 18:47:43 +02:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2009-09-17 10:14:44 +02:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
matlab \
|
2012-04-20 11:27:03 +02:00
|
|
|
contrib \
|
2011-11-30 16:22:30 +01:00
|
|
|
NEWS \
|
2009-12-11 17:31:33 +01:00
|
|
|
license.txt \
|
2013-06-19 18:20:27 +02:00
|
|
|
README.md \
|
2015-12-08 14:31:04 +01:00
|
|
|
COPYING \
|
|
|
|
CONTRIBUTING.md \
|
2009-09-17 10:14:44 +02:00
|
|
|
windows/dynare.nsi \
|
2010-09-28 16:46:53 +02:00
|
|
|
windows/mexopts-win32.bat \
|
|
|
|
windows/mexopts-win64.bat \
|
2010-04-30 12:36:24 +02:00
|
|
|
windows/README.txt \
|
2011-02-15 18:38:30 +01:00
|
|
|
osx \
|
2012-06-08 16:29:11 +02:00
|
|
|
examples \
|
2014-04-01 17:31:50 +02:00
|
|
|
scripts \
|
|
|
|
.dir-locals.el
|
2009-09-17 10:14:44 +02:00
|
|
|
|
2018-02-16 16:09:46 +01:00
|
|
|
all-local: preprocessor/src/dynare_m
|
|
|
|
{ \
|
|
|
|
if [ -z "`file preprocessor/src/dynare_m | grep x86.64`" ]; then \
|
|
|
|
ARCH="32"; \
|
|
|
|
else \
|
|
|
|
ARCH="64"; \
|
|
|
|
fi; \
|
|
|
|
mkdir -p $(abs_srcdir)/matlab/preprocessor$$ARCH; \
|
2018-02-19 12:41:23 +01:00
|
|
|
$(LN_S) -f $(abs_srcdir)/preprocessor/src/dynare_m $(abs_srcdir)/matlab/preprocessor$$ARCH; \
|
2018-02-19 12:44:38 +01:00
|
|
|
mkdir -p $(abs_srcdir)/julia/preprocessor$$ARCH ; \
|
|
|
|
$(LN_S) -f $(abs_srcdir)/preprocessor/src/dynare_m $(abs_srcdir)/julia/preprocessor$$ARCH; \
|
2018-02-16 16:09:46 +01:00
|
|
|
}
|
|
|
|
|
2010-02-13 09:52:43 +01:00
|
|
|
dist-hook:
|
2010-04-30 12:36:24 +02:00
|
|
|
rm -rf `find $(distdir)/matlab $(distdir)/examples -name *~`
|
2015-03-30 13:04:39 +02:00
|
|
|
rm -rf $(distdir)/matlab/preprocessor* $(distdir)/matlab/dynare_version.m
|
2009-11-05 13:12:55 +01:00
|
|
|
$(MKDIR_P) $(distdir)/mex/matlab $(distdir)/mex/octave
|
2017-06-28 14:19:35 +02:00
|
|
|
rm -rf `find $(distdir) -name '.git*'`
|
2014-07-16 16:18:06 +02:00
|
|
|
|
|
|
|
install-exec-local:
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/contrib/ms-sbvar/TZcode
|
2015-03-30 13:04:39 +02:00
|
|
|
cp -r contrib/ms-sbvar/TZcode/MatlabFiles $(DESTDIR)$(pkglibdir)/contrib/ms-sbvar/TZcode
|
2017-06-22 16:34:52 +02:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkglibdir)/contrib/jsonlab
|
|
|
|
cp -r contrib/jsonlab $(DESTDIR)$(pkglibdir)/contrib/jsonlab
|
2014-07-16 16:18:06 +02:00
|
|
|
cp -r examples $(DESTDIR)$(pkglibdir)
|
|
|
|
cp -r matlab $(DESTDIR)$(pkglibdir)
|
2017-06-28 15:06:02 +02:00
|
|
|
find $(DESTDIR)$(pkglibdir) -name LICENSE.md -delete
|
2015-03-30 13:04:39 +02:00
|
|
|
rm -rf $(DESTDIR)$(pkglibdir)/matlab/preprocessor*
|
|
|
|
{ \
|
2018-02-16 16:09:46 +01:00
|
|
|
if [ -z "`file preprocessor/src/dynare_m | grep x86.64`" ]; then \
|
2015-03-30 13:04:39 +02:00
|
|
|
ARCH="32"; \
|
|
|
|
else \
|
|
|
|
ARCH="64"; \
|
|
|
|
fi; \
|
|
|
|
mkdir -p $(DESTDIR)$(pkglibdir)/matlab/preprocessor$$ARCH; \
|
2018-02-16 16:09:46 +01:00
|
|
|
cp preprocessor/src/dynare_m $(DESTDIR)$(pkglibdir)/matlab/preprocessor$$ARCH; \
|
2015-03-30 13:04:39 +02:00
|
|
|
}
|
2014-07-16 16:18:06 +02:00
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
rm -f $(DESTDIR)$(bindir)/dynare++
|
|
|
|
rm -rf $(DESTDIR)$(pkglibdir)
|