All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make install on windows
@ 2009-02-26 16:40 Alexandre Bique
  2009-02-26 16:49 ` Alexandre Bique
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Bique @ 2009-02-26 16:40 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

Hi,

On windows with cygwin or mingw, when i do make install, it installs
linux elf32 files instead of windows *.exe.

Here is a patch to install the right file depending on $(EXEEXT).

Thank you.

-- 
Alexandre Bique

[-- Attachment #2: grub2-r2001-make-install-win32.patch --]
[-- Type: application/octet-stream, Size: 1098 bytes --]

Index: Makefile.in
===================================================================
--- Makefile.in	(revision 2001)
+++ Makefile.in	(working copy)
@@ -222,14 +222,14 @@
 	  $(INSTALL_DATA) $$dir$$file $(DESTDIR)$(pkgdatadir)/$$dest; \
 	done
 	$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
-	@list='$(bin_UTILITIES)'; for file in $$list; do \
+	@list='$(bin_UTILITIES:=$(EXEEXT))'; for file in $$list; do \
 	  if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
 	  dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
 	  $(INSTALL_PROGRAM) $$dir$$file $(DESTDIR)$(bindir)/$$dest; \
 	  $(HELP2MAN) --section=1 $(builddir)/$$file > $(DESTDIR)$(mandir)/man1/$$dest.1; \
 	done
 	$(mkinstalldirs) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir)/man8
-	@list='$(sbin_UTILITIES)'; for file in $$list; do \
+	@list='$(sbin_UTILITIES:=$(EXEXT))'; for file in $$list; do \
 	  if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
 	  dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
 	  $(INSTALL_PROGRAM) $$dir$$file $(DESTDIR)$(sbindir)/$$dest; \

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-28  0:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-26 16:40 [PATCH] make install on windows Alexandre Bique
2009-02-26 16:49 ` Alexandre Bique
2009-02-28  0:32   ` Christian Franke
2009-02-28  0:38     ` Alexandre Bique

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.