forked from registor/kaobook-zh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·42 lines (35 loc) · 1.14 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
# 该 Makefile 用于编译一个 Beamer 制作的幻灯片
# 运行环境:Linux、texlive2014(XeTeX)、evince 阅读器
Compiler = xelatex -shell-escape -interaction=nonstopmode
Reader = evince
Target = main.pdf
Source = main.tex
TmpFile = *.out *.log *.aux *.nav *.snm *.toc *.vrb *.pyg *.nav *.toc
$(Target): $(Source)
$(Compiler) $(Source)
$(Compiler) $(Source)
all: $(Target) clean read
read:
$(Reader) $(Target)
clean:
# -rm -r $(TmpFile)
find . -name "*.out" | xargs rm -f
find . -name "*.log" | xargs rm -f
find . -name "*.aux" | xargs rm -f
find . -name "*.nav" | xargs rm -f
find . -name "*.snm" | xargs rm -f
find . -name "*.toc" | xargs rm -f
find . -name "*.vrb" | xargs rm -f
find . -name "*.pyg" | xargs rm -f
find . -name "*.nav" | xargs rm -f
find . -name "*.toc" | xargs rm -f
find . -name "*.atfi" | xargs rm -f
find . -name "*.bbl" | xargs rm -f
find . -name "*.bcf" | xargs rm -f
find . -name "*.blg" | xargs rm -f
find . -name "*.xml" | xargs rm -f
find . -name "main-blx.bib" | xargs rm -f
find . -name "*.*~" | xargs rm -f
cleanall:
-rm -r $(TmpFile) $(Target)
.PHONY: all read clean cleanall