forked from sjtug/SJTUThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 790 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
THESIS = thesis
SUBMIT = submit
# TEX, BIB, TEST dir
TEX_DIR = tex
BIB_DIR = bib
# Option for latexmk
LATEXMK_OPT = -xelatex -gg -silent -f
all: $(THESIS).pdf $(SUBMIT).pdf
.PHONY : all clean version release cleanall
$(THESIS).pdf : $(THESIS).tex $(TEX_DIR)/*.tex $(BIB_DIR)/*.bib sjtuthesis.cls sjtuthesis.cfg Makefile
-latexmk $(LATEXMK_OPT) $(THESIS)
$(SUBMIT).pdf : $(THESIS).pdf statement.pdf
rm -f _tmp_.pdf $@
stapler sel $(THESIS).pdf 1-4 statement.pdf _tmp_.pdf
stapler sel _tmp_.pdf $(THESIS).pdf 6-end $@
clean :
latexmk -C
-rm *.xdv *.bbl *.fls $(TEX_DIR)/*.xdv $(TEX_DIR)/*.aux $(TEX_DIR)/*.log $(TEX_DIR)/*.fls _tmp_.pdf
cleanall : clean
-rm -f $(THESIS).pdf
s3 : $(THESIS).pdf
s3cmd put $< s3://sjtuthesis/README.pdf
git :
git push gitlab
git push github