-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
67 lines (53 loc) · 970 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
59
60
61
62
63
64
65
66
67
# Makefile for ZzuThesis
METHOD = xelatex
THESISMAIN = main
PACKAGE=zzuthesis
ifeq ($(MAKE),)
override MAKE = make
endif
THESISCONTENTS=$(THESISMAIN).tex data/*.tex
BIBFILE=ref/*.bib
CLSFILES=$(PACKAGE).cls $(PACKAGE).cfg
all: thesis a3cover
###### for thesis
thesis: $(THESISMAIN).pdf
$(THESISMAIN).pdf: $(CLSFILES) $(THESISCONTENTS) $(THESISMAIN).bbl
xelatex $(THESISMAIN).tex
xelatex $(THESISMAIN).tex
$(THESISMAIN).bbl: $(BIBFILE)
xelatex $(THESISMAIN).tex
-bibtex $(THESISMAIN)
rm $(THESISMAIN).pdf
###### for a3cover
a3cover:a3cover.pdf
a3cover.pdf: spine.pdf $(THESISMAIN).pdf a3cover.tex
xelatex a3cover.tex
spine.pdf: spine.tex
xelatex spine.tex
##### clean
clean:
-@rm -f \
*~ \
spine.pdf \
*.aux \
*.bak \
*.bbl \
*.blg \
*.dvi \
*.exa \
*.glo \
*.gls \
*.idx \
*.ilg \
*.ind \
*.ist \
*.log \
*.out \
*.ps \
*.thm \
*.toc \
*.lof \
*.lot \
*.loe \
data/*.aux \
data/*~