GNU bug report logs -
#8099
LaTeX and automake
Previous Next
Full log
Message #38 received at 8099 <at> debbugs.gnu.org (full text, mbox):
On 2 March 2011 22:13, Reuben Thomas <rrt <at> sc3d.org> wrote:
> On 2 March 2011 22:12, Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de> wrote:
>> I just learned about rubber which also aims to deal with latex documents.
>> Have you looked at it yet?
>
> No, I will do so.
Initial impressions are good: rubber is much more cleanly written than
latexmk, and I can use pretty much the same automake rules with it:
LATEX_SRCS = ... # top-level .tex files
LATEX_PDFS = ... # top-level PDF outputs
pdf-local: $(LATEX_PDFS)
CLEANFILES = $(LATEX_PDFS)
clean-local:
$(RUBBER) --clean $(PAPER_SRCS)
EXTRA_DIST = $(LATEX_SRCS)
.tex.pdf:
$(RUBBER) --pdf $<
I distribute the PDFs, so change CLEANFILES to MAINTIANERCLEANFILES.
I have not tried extracting dependency information yet, but it seems
very straightforward: rubber-info --deps foo.tex gives a
space-separated list of all the dependencies. So, other than worrying
about filenames containing spaces (sigh), one would imagine just
adding that information to the Makefile.
This means, effectively, delegating the semantics of rebuilding to
rubber, but that seems a reasonable starting-point.
Thoughts?
--
http://rrt.sc3d.org
This bug report was last modified 12 years and 44 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.