forked from tuxify/zzuthesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (27 loc) · 729 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
# Makefile for ZzuThesis
LATEXMKOPTS = -xelatex -file-line-error -halt-on-error -interaction=nonstopmode
THESISMAIN = main
PACKAGE = zzuthesis
THESISCONTENTS=$(THESISMAIN).tex data/*.tex
CLSFILES=$(PACKAGE).cls $(PACKAGE).cfg
# make deletion work on Windows
ifdef SystemRoot
RM = del /Q
else
RM = rm -f
endif
all: thesis a3cover
###### for thesis
thesis: $(THESISMAIN).pdf
$(THESISMAIN).pdf: $(CLSFILES) $(THESISCONTENTS)
latexmk $(LATEXMKOPTS) $(THESISMAIN)
###### 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:
latexmk -c $(THESISMAIN) spine a3cover
-@$(RM) *~ *.bbl *.exa *.xdv data/*.aux