view src/octave-1-links.patch @ 3372:4dbf057b4906

octave-1-links.patch: use EXEEXT when creating links in octave src directory
author John W. Eaton <jwe@octave.org>
date Sun, 22 Dec 2013 15:15:49 -0500
parents
children
line wrap: on
line source

--- a/src/Makefile.am	2013-12-21 14:31:40.000000000 -0500
+++ b/src/Makefile.am	2013-12-22 15:04:34.424512209 -0500
@@ -49,11 +49,11 @@
   octave \
   octave-cli
 
-OCTAVE_VERSION_LINKS = octave-cli-$(version)
+OCTAVE_VERSION_LINKS = octave-cli-$(version)$(EXEEXT)
 
 if AMCOND_BUILD_GUI
   OCTAVE_BINARIES += octave-gui
-  OCTAVE_VERSION_LINKS += octave-gui-$(version)
+  OCTAVE_VERSION_LINKS += octave-gui-$(version)$(EXEEXT)
 endif
 
 OCTAVE_CORE_LIBS = \
@@ -197,11 +197,11 @@
 ## We need these file names in the build tree because the wrapper
 ## program (main.cc) will try to invoke the versioned binaries.
 
-octave-cli-$(version): octave-cli
+octave-cli-$(version)$(EXEEXT): octave-cli$(EXEEXT)
 	rm -f $@
 	$(LN_S) $< $@
 
-octave-gui-$(version): octave-gui
+octave-gui-$(version)$(EXEEXT): octave-gui$(EXEEXT)
 	rm -f $@
 	$(LN_S) $< $@