forked from sjtug/SJTUThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (48 loc) · 910 Bytes
/
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
# Makefile for sjtu-thesis-template-latex
# Basename of thesis
THESISMAIN=diss
# Test file
TESTFILE=test
# pdf viewer: evince/open
VIEWER=open
all: pdf
pdf: ${THESISMAIN}.pdf
${THESISMAIN}.pdf: ${THESISMAIN}.tex body/*.tex *.cls *.cfg
xelatex -no-pdf --interaction=nonstopmode ${THESISMAIN}
-bibtex ${THESISMAIN}
xelatex -no-pdf --interaction=nonstopmode ${THESISMAIN}
xelatex --interaction=nonstopmode ${THESISMAIN}
view: ${THESISMAIN}.pdf
${VIEWER} ${THESISMAIN}.pdf &
clean:
-@rm -f \
*~ \
*.aux \
*.bak \
*.bbl \
*.blg \
*.dvi \
*.xdv \
*.glo \
*.gls \
*.idx \
*.ilg \
*.ind \
*.ist \
*.log \
*.out \
*.ps \
*.thm \
*.toc \
*.lof \
*.lot \
*.loe \
*_latexmk \
body/*.aux
distclean: clean
-@rm -f ${THESISMAIN}.pdf
test: ${TESTFILE}.tex
xelatex ${TESTFILE}
${VIEWER} ${TESTFILE}.pdf
cp: ${THESISMAIN}.pdf
-@cp ${THESISMAIN}.pdf README.pdf