From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Re: Out of source compilation Date: Sun, 1 Sep 2019 18:22:16 +0200 Message-ID: <20190901162216.t7bzavekajd3mmdq@Ergus> References: <20190901035705.2jgo4jf7utlt7mw5@Ergus> <20190901082430.GA19628@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="189043"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 01 18:24:42 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 1i4Seg-000n4B-Jh for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Sep 2019 18:24:42 +0200 Original-Received: from localhost ([::1]:58726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4Sef-00043e-IE for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Sep 2019 12:24:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55358) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4SeT-00043W-9F for help-gnu-emacs@gnu.org; Sun, 01 Sep 2019 12:24:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4SeR-0003Kf-7j for help-gnu-emacs@gnu.org; Sun, 01 Sep 2019 12:24:28 -0400 Original-Received: from sonic309-52.consmr.mail.ir2.yahoo.com ([77.238.179.110]:42278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4SeQ-0003Gk-Je for help-gnu-emacs@gnu.org; Sun, 01 Sep 2019 12:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1567355064; bh=i/rmWiyR9PFoTF6B3ZM4R7TD0jnelNs5YejYBIljjaA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=lyL1a0wOR7amN0wjeWdfKIR3BMsxrUyIeNW9MBrar0VYbIe69g32LyQja9aExAFK3NF36xAUF2uGVf3svSYvUCj+5l92mo9Ln8bhfCQ1LVxG2DHUl5FRqUfJ1980Wys1iokaqVqF0oH9a9Rrq2p6vf1CE1R5pR9MGPfSgQw+0PnVmEzLiv2ElyJA+AqpL7v2ij05xoH77/6T/9yPJ/RqFgP/pOBxwOjjVeBEhUsFS0AX9ZCQ8GfMHDsaEqAVPlh02dSrfMGWtlNnEYPdriJNPLuPofh5pN4s38rSHG1XZgloDefIvf5yeTwB2qStJCmPeOm07RIsIJsvBnTMs6jXZg== X-YMail-OSG: ASTziVAVM1kv8lsvksHu7MvSuJLG7c02IMUolTPYEyeN321b6ji5DvJSF.KB0gT x7qU1YH3RBznqV30pt3q583mujbDF3SCORgbZxK3qOUEfG2EOAqHvGUbWOGI_b8dKm_1ElZLaatc vuPJwiSj0G5l5Hjn1rlsAhobiK2Q4TA3kPbb.hPirYYBSMvyWowjJQU8izycQ6bPBONJ1k0vE5qr OtI.LvnWjoKH8tdsZyFYoodolc_bs_H9dzRqHUVPsW5KeQNA9eCA2YxjXGiOdnE9kkmlYErR67WG kiZpxKf9MCpqdq19RHtgLcjI03qZYFOn.OY0aKd5YX_fh1FEgINfZnHz1Wh4K0GuGda.cm49DNKL PtOAkdNYZRfEyT59dPvbxUV25AXVGUoUJOOf5Hin6LQWYxa3XQ7fhkAZJvBlGAWPm_I_Uenf4sHl WD27xK3AgxaIwWG3lwEihwT5gLpCN5xmld3YHo7t_0vG1OzrtsH_4pXLq8kJ8JLxePflA_sTALnt VQDEZtJO_gu3uSb1fAOvC5QDueDUVqoY3O73.KM1P53J7ddW8LQO0QErmdpLMFblSJ0_4dMyM_kU b3E8.chcIt7sZlO_bFw6ukir1A6lKv2yM1MX25CO03j.EOdB2gVN6NLAFf32crrBSJhoe82KKgpX 4KHo3uzjfiQK7vHcFOS9jvcT9MjCHCnQs743fZ3Kys5jgdscMOiRbtun8zY1QEI4u6WtDUWINliB FnC9OipHC8xapPX3kYaod3IliUGuPMaPqQRgesBJqFiUoUOG7t9oAkkdoswaBWI93VGcfliWYvsW d2bQ8wFkschuwMUM7Yc3CNbk53L8f2nR5dPFm6Lxlt Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Sun, 1 Sep 2019 16:24:24 +0000 Original-Received: by smtp405.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID c4ca431b161219c0b8e879eab16c2315; Sun, 01 Sep 2019 16:22:24 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20190901082430.GA19628@tuxteam.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.238.179.110 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:121405 Archived-At: No, sorry I explained wrong myself ;) I was asking about using the M-x compile command in general. So use compilation buffers, recompile, goto-next-error and so on. When compiling in source it is almost trivial, but when the building directory is out of sources (like cmake does by default) I don't know if there is a way to tell to emacs that the compilation directory is somewhere else. On Sun, Sep 01, 2019 at 10:24:30AM +0200, tomas@tuxteam.de wrote: >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? > >> 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. > >Cheers >-- t