-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
58 lines (41 loc) · 1.46 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
47
48
49
50
51
52
53
54
55
56
57
58
VERSION = 1.1
TARBALL = ufbathesis-$(VERSION).tar.gz
UPLOAD_TO = app.dcc.ufba.br:~/public_html/ufbathesis/
LATEX = latex
BIBTEX = bibtex
MAKEINDEX = makeindex
XDVI = xdvi -gamma 4
DVIPS = dvips
DVIPDF = dvipdft
L2H = latex2html
GH = gv
RERUN = "(There were undefined references|Rerun to get (cross-references|the bars) right)"
RERUNBIB = "No file.*\.bbl|Citation.*undefined"
MAKEIDX = "^[^%]*\\makeindex"
MPRINT = "^[^%]*print"
USETHUMBS = "^[^%]*thumbpdf"
all: bsc qual prop msc phd
bsc: template-bsc.dvi template-bsc.pdf
qual: template-qual.dvi template-qual.pdf
msc: template-msc.dvi template-msc.pdf
prop: template-prop.dvi template-prop.pdf
phd: template-phd.dvi template-phd.pdf
%.dvi: %.tex ufbathesis.cls
latex -src -interaction=nonstopmode $<
%.pdf: %.tex ufbathesis.cls
pdflatex -synctex=1 -interaction=nonstopmode $<
%.bbl %.blg : biblio.bib %.aux
bibtex $<
%.aux : %.tex
latex -src -interaction=nonstopmode $<
dist: $(TARBALL)
$(TARBALL): ufbathesis.cls abntex2-alf.bst
tar czf $(TARBALL) $^
index.html: README.md
(pandoc -s -f markdown -t html $< | sed -e 's/##VERSION##/$(VERSION)/g' > $@) || ($(RM) $@; false)
upload: $(TARBALL) index.html template-bsc.tex template-qual.tex template-msc.tex template-prop.tex template-phd.tex .htaccess
rsync -avp $^ $(UPLOAD_TO)
clean:
$(RM) $(TARBALL)
$(RM) *.bbl *.blg *.aux *.lof *.log *.lot *.toc *.out *.brf *.synctex.* template*.pdf template*.dvi
$(RM) index.html