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
28 BUILD_FORMATS = dvi ps
30 # which format to be shown on "make show"
33 ########################################################################
36 ########################################################################
38 AVAILABLE_FORMATS = dvi ps ps.gz pdf html
55 ALL_FORMATS = $(BUILD_FORMATS)
56 WORLD_FORMATS = $(AVAILABLE_FORMATS)
59 world: $(WORLD_FORMATS)
61 DVIS = $(TEXS:.tex=.dvi)
62 PSS = $(TEXS:.tex=.ps)
63 PSGZS = $(TEXS:.tex=.ps.gz)
64 PDFS = $(TEXS:.tex=.pdf)
65 HTMLS = $(TEXS:.tex=.html)
73 show: show$(SHOW_FORMAT)
91 $(TEXS:.tex=.dvi) $(TEXS:.tex=.ps) $(TEXS:.tex=.ps.gz) \
92 $(TEXS:.tex=.pdf) $(TEXS:.tex=.aux) $(TEXS:.tex=.log) \
93 $(TEXS:.tex=.html) $(TEXS:.tex=.out) $(TEXS:.tex=.haux) \
94 $(TEXS:.tex=.htoc) $(TEXS:.tex=.tmp)
98 if [ "$(BIBTEX)" = "yes" ]; then $(BIBTEX) $*; fi
99 if [ "$(RUNS)" -gt 1 ]; then \
100 for i in seq 1 `expr $(RUNS) - 1`; do \
104 ifeq ($(PDF_VIA_PDFLATEX),yes)
107 if [ "$(BIBTEX)" = "yes" ]; then $(BIBTEX) $*; fi
108 if [ "$(RUNS)" -gt 1 ]; then \
109 for i in seq 1 `expr $(RUNS) - 1`; do \
124 .PHONY: all ps pdf html clean
126 ########################################################################