bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] help needed invoking makefile


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] help needed invoking makefile
Date: Sat, 16 Jun 2007 11:24:05 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

* Patrick Drechsler (2007-06-16) writes:

> I have a large latex project including many subdirectories. Also,
> I have a single Makefile in the root folder of this
> project. Since Emacs is able to parse the "stuff-at-the-end":
>
> %%% Local Variables: 
> %%% mode: latex
> %%% TeX-master: "../../main"
> %%% End: 
>
> I was wondering if it's possible to pass the "TeX-master"
> information to Emacs' `M-x compile' command.
>
> I would like to use a function `M-x pd-make' --only for this project--
> which invokes the Makefile located in the root folder of this project,
> even if I am invoking `M-x compile' (or `M-x pd-make') from a buffer
> which is visiting a file within a subfolder of this project.
>
> Can somebody help me? Or should I rather post this to emacs.help?

If all you want to do is calling make in the directory of the master
file, the following code should work:

(eval-after-load "tex"
  '(add-to-list 'TeX-command-list '("Make" "make" TeX-run-command nil t)))

This adds a "Make" command to `TeX-command-list' which you can choose
after typing `C-c C-c'.  If it should be the default for the files in
this project, add a line like
%%% TeX-command-default: "Make"
to each relevant local variables stanza.

-- 
Ralf




reply via email to

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