diff Makefile @ 3006:dabfd7db980c

use cp for ln on mingw native builds
author John W. Eaton <jwe@octave.org>
date Thu, 30 May 2013 13:28:23 -0400
parents c154d525c70e
children 23989e9403a3
line wrap: on
line diff
--- a/Makefile	Thu May 30 13:17:57 2013 -0400
+++ b/Makefile	Thu May 30 13:28:23 2013 -0400
@@ -144,6 +144,17 @@
   MXE_LDFLAGS := '-L$(MXE_LIBDIR)'
 endif
 
+LN := ln
+LN_S := $(LN) -s
+LN_SF := $(LN_S) -f
+ifeq ($(MXE_SYSTEM),mingw)
+  ifeq ($(MXE_NATIVE_BUILD),yes)
+    LN := cp
+    LN_S := $(LN)
+    LN_SF := $(LN_S)
+  endif
+endif
+
 OCTAVE_FORGE_BASE_URL := 'http://sourceforge.net/projects/octave/files/Octave Forge Packages/Individual Package Releases'
 OCTAVE_FORGE_PACKAGES := $(addprefix of-,miscellaneous struct optim specfun general signal communications image io statistics control)