-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (60 loc) · 1.2 KB
/
Copy pathMakefile
File metadata and controls
75 lines (60 loc) · 1.2 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Makefile for ThuThesis
# Compiling method: xelatex
METHOD = xelatex
# Basename of thesis
THESISMAIN = thesis
# Basename of shuji
SHUJIMAIN = shuji
PACKAGE=tongjithesis
EPS=$(wildcard figures/*.eps)
THESISCONTENTS=$(THESISMAIN).tex chapters/*.tex $(EPS)
BIBFILE=/Users/wangjian/Dropbox/Papers/library.bib
SHUJICONTENT=$(SHUJIMAIN).tex
CLSFILE=$(PACKAGE).cls $(PACKAGE).cfg
# make deletion work on Windows
ifdef SystemRoot
RM = del /Q
else
RM = rm -f
endif
###### for thesis
thesis: clean $(THESISMAIN).pdf
ifeq ($(METHOD), xelatex)
$(THESISMAIN).pdf: $(CLSFILES) $(THESISCONTENTS) $(THESISMAIN).bbl
xelatex -shell-escape $(THESISMAIN)
xelatex -shell-escape $(THESISMAIN)
$(THESISMAIN).bbl: $(BIBFILE)
xelatex -shell-escape $(THESISMAIN)
-bibtex $(THESISMAIN)
-$(RM) $(THESISMAIN).pdf
endif
###### for shuji
shuji: $(SHUJIMAIN).pdf
ifeq ($(METHOD),xelatex)
$(SHUJIMAIN).pdf: $(CLSFILES) $(SHUJICONTENTS)
xelatex -shell-escape $(SHUJIMAIN).tex
endif
clean:
-@$(RM) \
*~ \
*.aux \
*.bak \
*.bbl \
*.blg \
*.dvi \
*.glo \
*.gls \
*.idx \
*.ilg \
*.ind \
*.ist \
*.log \
*.out \
*.ps \
*.thm \
*.toc \
*.lof \
*.lot \
*.loe \
chapters/*.aux \
chapters/*.log