Small patch for src/Makefile.am



Most of Makefile.am provides $(EXEEXT) for operating systems that use
filename extensions, but it is missing in a couple of places.  Patch
attached.

(I felt reckless one day and tried building MC on OS/2.  The OS/2
specific code was removed long ago, so I was impressed at how far I got.
Did "./configure --with-screen=ncurses ; make".  GCC 3.3.5 didn't throw
out any warnings or errors until it tried to install 'mcview' instead of
'mcview.exe'.  But MC crashes immediately with a GLib error.)

Anton
--- src/Makefile.am	Mon Feb  6 10:55:42 2006
+++ src/Makefile.am-new	Sun Mar 18 05:54:08 2007
@@ -93,13 +93,13 @@
 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
 #
 install_mcview:
-	cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
+	cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview$(EXEEXT) && $(LN_S) mc$(EXEEXT) mcview$(EXEEXT)
 
 install_mcedit:
-	cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
+	cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit$(EXEEXT) && $(LN_S) mc$(EXEEXT) mcedit$(EXEEXT)
 
 uninstall-hook:
-	rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
+	rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview$(EXEEXT)
 if USE_EDIT
-	rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
+	rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit$(EXEEXT)
 endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]