dynare/Makefile.am

67 lines
1.8 KiB
Makefile
Raw Normal View History

SUBDIRS = preprocessor doc tests mex/sources
if ENABLE_DYNAREPLUSPLUS
SUBDIRS += dynare++
endif
if ENABLE_MATLAB
SUBDIRS += mex/build/matlab
endif
if ENABLE_OCTAVE
SUBDIRS += mex/build/octave
endif
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
matlab \
contrib \
NEWS.md \
license.txt \
README.md \
2015-12-08 14:31:04 +01:00
COPYING \
CONTRIBUTING.md \
windows \
2019-09-16 18:28:34 +02:00
macOS \
examples \
scripts \
.dir-locals.el
all-local: preprocessor/src/dynare_m$(EXEEXT)
if file preprocessor/src/dynare_m$(EXEEXT) | grep -q x86.64; then \
2018-02-16 16:09:46 +01:00
ARCH="64"; \
2019-03-25 16:14:36 +01:00
else \
ARCH="32"; \
2018-02-16 16:09:46 +01:00
fi; \
2019-03-25 16:14:36 +01:00
mkdir -p $(abs_srcdir)/matlab/preprocessor$$ARCH && \
2020-01-31 22:50:55 +01:00
$(LN_S) -f $(abs_builddir)/preprocessor/src/dynare_m$(EXEEXT) $(abs_srcdir)/matlab/preprocessor$$ARCH
2018-02-16 16:09:46 +01:00
2020-02-25 14:22:53 +01:00
clean-local:
rm -rf $(abs_srcdir)/matlab/preprocessor32 $(abs_srcdir)/matlab/preprocessor64
dist-hook:
rm -rf `find $(distdir)/matlab $(distdir)/examples -name *~`
rm -rf $(distdir)/matlab/preprocessor* $(distdir)/matlab/dynare_version.m
$(MKDIR_P) $(distdir)/mex/matlab $(distdir)/mex/octave
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
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)
find $(DESTDIR)$(pkglibdir) -name LICENSE.md -delete
rm -rf $(DESTDIR)$(pkglibdir)/matlab/preprocessor*
2019-03-25 16:14:36 +01:00
if file preprocessor/src/dynare_m | grep -q x86.64; then \
ARCH="64"; \
2019-03-25 16:14:36 +01:00
else \
ARCH="32"; \
fi; \
2019-03-25 16:14:36 +01:00
mkdir -p $(DESTDIR)$(pkglibdir)/matlab/preprocessor$$ARCH && \
cp preprocessor/src/dynare_m $(DESTDIR)$(pkglibdir)/matlab/preprocessor$$ARCH
2014-07-16 16:18:06 +02:00
uninstall-local:
rm -rf $(DESTDIR)$(pkglibdir)