From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LdD8R-0006yv-B5 for mharc-grub-devel@gnu.org; Fri, 27 Feb 2009 19:32:55 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdD8Q-0006ye-0y for grub-devel@gnu.org; Fri, 27 Feb 2009 19:32:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdD8O-0006yI-GX for grub-devel@gnu.org; Fri, 27 Feb 2009 19:32:53 -0500 Received: from [199.232.76.173] (port=60329 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdD8O-0006yE-B7 for grub-devel@gnu.org; Fri, 27 Feb 2009 19:32:52 -0500 Received: from mailout10.t-online.de ([194.25.134.21]:40755) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LdD8N-0004Jf-V2 for grub-devel@gnu.org; Fri, 27 Feb 2009 19:32:52 -0500 Received: from fwd01.aul.t-online.de by mailout10.sul.t-online.de with smtp id 1LdD8M-0006TQ-00; Sat, 28 Feb 2009 01:32:50 +0100 Received: from [10.3.2.2] (VrkJBTZLwhCoYQz9nhvDWqTvTQDT43s0XHkxfHYLdD-nlocNwoaPXZI31RAjLevg33@[217.235.220.215]) by fwd01.aul.t-online.de with esmtp id 1LdD8A-1q9UmG0; Sat, 28 Feb 2009 01:32:38 +0100 Message-ID: <49A88626.4060904@t-online.de> Date: Sat, 28 Feb 2009 01:32:38 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 SeaMonkey/1.1.11 MIME-Version: 1.0 To: The development of GRUB 2 References: <5d3bb3090902260840y49d4a519hf8012d992306176@mail.gmail.com> <5d3bb3090902260849k6e0e7550n918b07b144aaf7c5@mail.gmail.com> In-Reply-To: <5d3bb3090902260849k6e0e7550n918b07b144aaf7c5@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ID: VrkJBTZLwhCoYQz9nhvDWqTvTQDT43s0XHkxfHYLdD-nlocNwoaPXZI31RAjLevg33 X-TOI-MSGID: 93827093-f6ed-416e-8589-6d70e465a1f5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] make install on windows X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2009 00:32:54 -0000 Alexandre Bique wrote: > >> 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. >> > > Ooouuuppss, there is a little mistake : $(EXEXT) instead of $(EXEEXT). > Take the new patch. > > > --- 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)'`"; \ This is not necessary on Cygwin. Its /usr/bin/install handles the .exe issue itself, such that most existing Makefiles work OOTB. Please make sure that /usr/bin/install and no other install is found in the PATH. -- Christian Franke