help-make
[Top][All Lists]
Advanced

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

Re: using make for latex


From: Greg Chicares
Subject: Re: using make for latex
Date: Sat, 18 Sep 2010 14:17:03 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

On 2010-09-18 13:15Z, James wrote:
> 
> I'm using make to manage the compilation of latex documents.  Latex offers 
> two compilers, "latex" and "pdflatex" that create .dvi and .pdf files, 
> respectively.  When compiling either one, the list of steps (including 
> multiple runs of latex, each run builds on the outputs of the last run until 
> a final version is created) and command line arguments are the same, its 
> just the compiler that is different.
[...]
> What is the best way to handle this so I don't have to maintain two 
> identical lists of commands?

%.dvi: TOOL := latex
%.pdf: TOOL := pdflatex

%.dvi %.pdf: %.tex
        @echo 'Sample command: $(TOOL) --input=$< --output=$@'
        # ...further commands here...



reply via email to

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