3 # Generic makefile for latex
5 # Author: Stefano Zacchiroli <zack@bononia.it>
7 # Created: Sun, 29 Jun 2003 12:00:55 +0200 zack
8 # Last-Modified: Mon, 10 Oct 2005 15:37:12 +0200 zack
11 ########################################################################
13 # list of .tex _main_ files
16 # number of runs of latex (for table of contents, list of figures, ...)
22 # would you like to use pdflatex?
23 PDF_VIA_PDFLATEX = yes
25 # which formats generated by default ("all" target)?
26 # (others will be generated by "world" target)
27 # see AVAILABLE_FORMATS below
30 # which format to be shown on "make show"
33 ########################################################################
35 AVAILABLE_FORMATS = dvi ps ps.gz pdf html
52 ALL_FORMATS = $(BUILD_FORMATS)
53 WORLD_FORMATS = $(AVAILABLE_FORMATS)
56 world: $(WORLD_FORMATS)
58 DVIS = $(TEXS:.tex=.dvi)
59 PSS = $(TEXS:.tex=.ps)
60 PSGZS = $(TEXS:.tex=.ps.gz)
61 PDFS = $(TEXS:.tex=.pdf)
62 HTMLS = $(TEXS:.tex=.html)
70 show: show$(SHOW_FORMAT)
88 $(TEXS:.tex=.dvi) $(TEXS:.tex=.ps) $(TEXS:.tex=.ps.gz) \
89 $(TEXS:.tex=.pdf) $(TEXS:.tex=.aux) $(TEXS:.tex=.log) \
90 $(TEXS:.tex=.html) $(TEXS:.tex=.out) $(TEXS:.tex=.haux) \
91 $(TEXS:.tex=.htoc) $(TEXS:.tex=.tmp)
95 if [ "$(BIBTEX)" = "yes" ]; then $(BIBTEX) $*; fi
96 if [ "$(RUNS)" -gt 1 ]; then \
97 for i in seq 1 `expr $(RUNS) - 1`; do \
101 ifeq ($(PDF_VIA_PDFLATEX),yes)
104 if [ "$(BIBTEX)" = "yes" ]; then $(BIBTEX) $*; fi
105 if [ "$(RUNS)" -gt 1 ]; then \
106 for i in seq 1 `expr $(RUNS) - 1`; do \
121 .PHONY: all ps pdf html clean
123 ########################################################################