-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
executable file
·47 lines (36 loc) · 1.04 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
BASE = diss
PDFREADER = evince
all: pdf
pdf: ${BASE}.pdf
${BASE}.pdf: ${BASE}.tex
# xelatex -no-pdf --interaction=nonstopmode ${BASE}
# bibtex ${BASE}
# xelatex -no-pdf --interaction=nonstopmode ${BASE}
# xelatex --interaction=nonstopmode ${BASE}
view: ${BASE}.pdf
$PDFREADER ${BASE}.pdf&
tar: ${BASE}.pdf
# TARSOURCE = *.tex *.pdf *.bst *.cfg *.cls Makefile body
# figures reference
# ${BASE}.tar: ${TARSOURCE}
# tar jcf ${BASE}.tar.bz2 ${TARSOURCE}
clean:
cp diss.pdf README.pdf
find ./ -iname '*.aux' | xargs rm
find ./ -iname '*.log' | xargs rm
find ./ -iname '*.lot' | xargs rm
find ./ -iname '*.out' | xargs rm
find ./ -iname '*.toc' | xargs rm
find ./ -iname '*.blg' | xargs rm
find ./ -iname '*.bbl' | xargs rm
find ./ -iname '*.lof' | xargs rm
find ./ -iname '*.xdv' | xargs rm
mv ${BASE}.pdf mythesis.pdf
rm ${BASE}.xdv ${BASE}.pdf
# cleantex
# if [ -e ${BASE}.xdv ]; then rm ${BASE}.xdv; fi
# cd body && cleantex && cd ..
test:
xelatex --no-pdf diss
distclean: clean
if [ -e ${BASE}.pdf ]; then rm ${BASE}.pdf; fi