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...

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to