-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
52 lines (46 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
47
48
49
50
51
52
# Adapated from https://github.com/sjtug/SJTUThesis/blob/master/Makefile
# now the following Makefile can work on Linux, MacOS, Windows
# Basename of thesis
THESIS = mythesis
TEMPLATE = hkustthesis
# Option for latexmk
LATEXMK_OPT = -quiet -file-line-error -halt-on-error -interaction=nonstopmode
LATEXMK_OPT_PVC = $(LATEXMK_OPT) -pvc
.PHONY : all clean FORCE_MAKE
all : $(THESIS).pdf
$(THESIS).pdf : $(THESIS).tex $(TEMPLATE).cls FORCE_MAKE
@latexmk $(LATEXMK_OPT) $<
$(TEMPLATE).cls : $(TEMPLATE).dtx
xetex $(TEMPLATE).dtx
clean :
@rm -f \
*.acn \
*.acr \
*.alg \
*.aux \
*.bbl \
*.bcf \
*.blg \
*.fls \
*.glg \
*.glo \
*.gls \
*.gz \
*.hd \
*.idx \
*.ilg \
*.ind \
*.ins \
*.ist \
*.loa \
*.lof \
*.log \
*.lol \
*.lot \
*.nav \
*.out \
*.xdv \
*.snm \
*.toc \
*.run.xml \
*.fdb_latexmk