1 # Generic make file for LaTeX: requires GNU make
3 # This makefile provides four targets: dvi, ps, pdf and clean.
4 # The default is "pdf".
5 # To make a dvi file, type "make dvi"
6 # To make a ps file, type "make ps".
7 # To make a pdf file, type "make pdf" or simply "make".
8 # To remove all files generated by make, type "make clean".
13 # Cristóvão Cruz October, 2009
17 HISTORIA
= historia.
tex $(wildcard historia
/*.
tex)
18 INSTALACAO
= instalacao.
tex $(wildcard instalacao
/*.
tex)
19 PRIMEIROSPASSOS
= primeirospassos.
tex $(wildcard primeirospassos
/*.
tex)
20 SOURCES
= $(HISTORIA
) $(INSTALACAO
) $(PRIMEIROSPASSOS
)
22 .PHONY
: dvi ps pdf
clean cleanall
24 pdf
: $(TEXFILE
:.
tex=.pdf
)
25 ps
: $(TEXFILE
:.
tex=.ps
)
26 dvi: $(TEXFILE
:.
tex=.
dvi)
28 %.
dvi: %.
tex $(SOURCES
)
31 while \grep
-qE
"Rerun" $(<:.
tex=.log
); \
41 \ps2pdf
-dPDFSETTINGS
=/prepress
$<
45 $(TEXFILE
:.
tex=.aux
) \
46 $(TEXFILE
:.
tex=.log
) \
47 $(TEXFILE
:.
tex=.out
) \
48 $(TEXFILE
:.
tex=.idx
) \
49 $(TEXFILE
:.
tex=.toc
) \
54 $(TEXFILE
:.
tex=.
dvi) \
55 $(TEXFILE
:.
tex=.pdf
) \