From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Lilja Newsgroups: gmane.emacs.devel Subject: Re: Moving homebrewn binaries and question about building documentation Date: Sat, 21 Jul 2007 16:32:49 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185028397 10182 80.91.229.12 (21 Jul 2007 14:33:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2007 14:33:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 21 16:33:14 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ICG1B-0002Hb-Bi for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2007 16:33:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICG1A-0007Bh-OL for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2007 10:33:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ICG17-0007BS-Ed for emacs-devel@gnu.org; Sat, 21 Jul 2007 10:33:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ICG15-0007BG-Vt for emacs-devel@gnu.org; Sat, 21 Jul 2007 10:33:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICG15-0007BD-QH for emacs-devel@gnu.org; Sat, 21 Jul 2007 10:33:07 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ICG15-0007vm-CA for emacs-devel@gnu.org; Sat, 21 Jul 2007 10:33:07 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ICG0y-0004Un-Ig for emacs-devel@gnu.org; Sat, 21 Jul 2007 16:33:00 +0200 Original-Received: from cust.fiber-lan.vnet.lk.85.194.49.108.stunet.se ([85.194.49.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2007 16:33:00 +0200 Original-Received: from mindcooler by cust.fiber-lan.vnet.lk.85.194.49.108.stunet.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2007 16:33:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 68 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cust.fiber-lan.vnet.lk.85.194.49.108.stunet.se User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) In-Reply-To: X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75231 Archived-At: Eli Zaretskii wrote: >> From: Eric Lilja >> Date: Sat, 21 Jul 2007 14:23:54 +0200 >> >> #!/bin/bash >> export CVS_RSH="ssh" >> touch ~/.cvspass >> cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co -r >> EMACS_22_BASE emacs >> rm ~/.cvspass >> cd emacs/nt/ >> ./configure.bat --with-gcc --no-cygwin --no-debug >> mingw32-make bootstrap --jobs=2 XMFLAGS="--jobs=2" >> mingw32-make install >> mingw32-make info >> >> The last command, mingw32-make info, was not actually in the script but >> something I performed as an afterthought. I've had problems before with >> my homebrewn binaries not being able to find its documentation, and >> maybe this was the missing step? > > You do need the last command on Windows, since nt/makefile will not > build the documentation by default (unlike on Unix and GNU systems). > This is because Windows users are not required to have Texinfo > installed, and we don't want to ail the build for those who don't. > >> My second question is: If I want to keep only the binaries and the files >> those binaries need, which directories should I get rid of now that the >> build is finished (and was a success)? > > I'd suggest to use the "make install" target (in nt/makefile). If you > give it a target directory, like this: > > make install INSTALL_DIR=/path/to/wherever/you/want > > then it will copy only the files necessary for running Emacs you built > to the named directory. You can then remove the source tree if you > don't want to keep it, and run Emacs from the directory where you told > "make install" to put it. > > The advantage of "make install" as compared to removing unneeded > directories is that some files inside the directories you do need are > not copied (e.g., the CVS/ subdirectories, the ChangeLog files, etc.). > This might result in more disk space savings. Ah, thanks for the useful reply, Eli! I've changed my script to: #!/bin/bash export CVS_RSH="ssh" touch ~/.cvspass cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co -r EMACS_22_BASE emacs rm ~/.cvspass cd emacs/nt/ ./configure.bat --with-gcc --no-cygwin --no-debug mingw32-make bootstrap --jobs=2 XMFLAGS="--jobs=2" mingw32-make info mingw32-make install INSTALL_DIR=c:/emacs/ and I'm going to test it now (builds are started in c:/cvsemacs/emacs/nt) and no more manual copy to c:/emacs if this works or wondering what to copy. I actually wrote an application that cleaned the emacs tree from the CVS-dirs but then that one is not needed anymore now that you've armed me with this new information! Thanks! :) I will post back if I encounter any problems. - Eric