-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
46 lines (36 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
############################################################################
#
# Makefile for abntex2-DCOMP-UFS
#
# ddantas 22/10/2020
#
############################################################################
FILENAME = Modelo-TCC-DCOMP
#FILENAME = Modelo-Mestrado-PROCC
all: $(FILENAME).pdf
dvi: $(FILENAME).dvi
ps: $(FILENAME).ps
pimg.ps: $(FILENAME).dvi
dvips -o $(FILENAME).ps $(FILENAME).dvi
$(FILENAME).pdf: *.tex
pdflatex $(FILENAME).tex
bibtex $(FILENAME)
pdflatex $(FILENAME).tex
pdflatex $(FILENAME).tex
evince $(FILENAME).pdf
$(FILENAME).dvi: clean $(FILENAME).tex
echo "Running latex..."
latex $(FILENAME).tex
echo "Running makeindex..."
#makeindex $(FILENAME).idx
echo "Rerunning latex...."
latex $(FILENAME).tex
latex_count=5 ; \
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
do \
echo "Rerunning latex...." ;\
latex $(FILENAME).tex ;\
latex_count=`expr $$latex_count - 1` ;\
done
clean:
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl $(FILENAME).pdf