Build system: don't use symlinks under Cygwin, MATLAB doesn't understand them

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2939 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
sebastien 2009-09-17 12:06:44 +00:00
parent a7e601989a
commit 77eb291162
2 changed files with 9 additions and 1 deletions

View File

@ -30,7 +30,15 @@ AC_LANG([C++])
CXXFLAGS="$CXXFLAGS -Wall"
AC_PROG_RANLIB
AC_PROG_LN_S
AC_CANONICAL_HOST
case ${host_os} in
*cygwin*)
LN_S="cp -p" # Cygwin symbolic links are not understood by MATLAB
;;
esac
AC_PROG_MKDIR_P
AM_PROG_LEX

View File

@ -62,7 +62,7 @@ DynareBison.cc DynareBison.hh location.hh stack.hh position.hh: DynareBison.yy
$(YACC) -o DynareBison.cc DynareBison.yy
all-local:
cd ../matlab && $(LN_S) -f $(abs_srcdir)/$(PROGRAMS)
cd ../matlab && $(LN_S) -f $(abs_srcdir)/$(PROGRAMS) $(PROGRAMS)
if HAVE_DOXYGEN
html-local: