help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set the Makefile directory in emacs


From: Eli Zaretskii
Subject: Re: How to set the Makefile directory in emacs
Date: Sat, 12 May 2007 10:48:54 +0300

> From: "Luca Trevisani" <lucatrv@hotmail.com>
> Date: Fri, 11 May 2007 15:56:15 +0200
> 
> Hi, I am editing a project with source files in many different
> subfolders. I wonder if I can set in emacs the default folder in wich
> the Makefile is, so that when I issue the command "make -k" emacs run it
> in the correct folder no matter where is the file I am editing.

Two possible ways:

  . Visit the Makefile and run the "make -k" command from the buffer
    that visits Makefile.

  . Instead of "make -k", use "cd /the/right/folder; make -k" as your
    compilation command.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]