forked from PGCOMP-UFBA/pgcomp-ufba-latex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (40 loc) · 1.24 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
VERSION = 1.0
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: qual prop msc phd
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 $<
%.pdf: %.tex ufbathesis.cls
pdflatex $<
%.bbl %.blg : biblio.bib %.aux
bibtex $<
%.aux : %.tex
latex $<
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-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 template*.pdf template*.dvi
$(RM) index.html