From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: VanL Newsgroups: gmane.emacs.help Subject: Re: Out of source compilation Date: Sun, 01 Sep 2019 22:55:37 +1000 Message-ID: References: <20190901035705.2jgo4jf7utlt7mw5@Ergus> <20190901082430.GA19628@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="167354"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 01 14:56:01 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i4POj-000hPI-Dh for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Sep 2019 14:56:01 +0200 Original-Received: from localhost ([::1]:57344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4POi-00047Y-AB for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Sep 2019 08:56:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56649) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4POW-00047Q-Cz for help-gnu-emacs@gnu.org; Sun, 01 Sep 2019 08:55:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4POV-0003Ha-5d for help-gnu-emacs@gnu.org; Sun, 01 Sep 2019 08:55:48 -0400 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:52532 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i4POU-0003Db-Uz for help-gnu-emacs@gnu.org; Sun, 01 Sep 2019 08:55:47 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1i4POR-000h7c-Oe for help-gnu-emacs@gnu.org; Sun, 01 Sep 2019 14:55:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:noMyOVltUjawT4QduDcqCvFxtDA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121402 Archived-At: writes: > On Sun, Sep 01, 2019 at 05:57:07AM +0200, Ergus wrote: >> Hi: >> >> Sorry if this is a too dumb question, but I don't find any related >> reference. >> >> What's the recommended method to do out of source compilation? > > You are talking about compiling Emacs from source? I was able to build the ordinary Emacs-26.3 source but EmacsMac is stuck. xxx% cd emacs-mac xxx% . ./autogen.sh Checking whether you have the necessary tools... (Read INSTALL.REPO for more details on building Emacs) Checking for autoconf (need at least version 2.65) ... ok Your system has the required tools. Running 'autoreconf -fi -I m4' ... autom4te: cannot lock autom4te.cache/requests with mode 2: \ Operation not supported autom4te: cannot lock autom4te.cache/requests with mode 2: \ Operation not supported autom4te: cannot lock autom4te.cache/requests with mode 2: \ Operation not supported Installing git hooks... cp: build-aux/git-hooks/ commit-msg pre-commit \ prepare-commit-msg: No such file or directory ./autogen.sh:360: you have running jobs. \help >> Right now I am doing a cd dir && make. But maybe there is >> something else, more complete? >> >> Maybe a variable in the locals file?? Or a set command? > > If my guess above was right, it's easy (this is true of most well > managed "modern" Autotools projects): > > - just make yourself a build directory somewhere (in my case > it's just a neighbour of the source dir, but that's not > necessary) > > - cd to your build directory > > - call configure script from your build directory > > - the build machinery gets deployed in your build directory. > > - do there make && make install as usual. ^ +--- Is it possible to set the target install-dir after `make' soas not to confuse existing installs? -- © 2019 VanL gpg using EEF2 37E9 3840 0D5D 9183 251E 9830 384E 9683 B835 'If the bug bites don't fight it.' - Nancy S. Steinhardt