forked from yhwu-is/Linear-Algebra-Left-Undone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (23 loc) · 737 Bytes
/
Makefile
File metadata and controls
27 lines (23 loc) · 737 Bytes
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
# FIXME: xindy can't handle UTF-8 filenames
FILENAME := 线性代数荣誉课辅学讲义
CPNAME := LALU
LATEXMK := latexmk
LATEXMK_FLAGS := -xelatex -shell-escape -interaction=nonstopmode -file-line-error
.PHONY: all clean
all:
# Building $(FILENAME).pdf
ifdef CPNAME
@cp -p $(FILENAME).tex $(CPNAME).tex
$(LATEXMK) $(LATEXMK_FLAGS) $(CPNAME).tex
@rm -f $(CPNAME).tex
-@mv $(CPNAME).pdf $(FILENAME).pdf
else
$(LATEXMK) $(LATEXMK_FLAGS) $(FILENAME).tex
endif
# Building answers.pdf
$(LATEXMK) $(LATEXMK_FLAGS) LALU-answers.tex
clean:
rm -f *.aux *.log *.idx *.ind *.ilg *.thm *.toc *.blg *.bbl *.bcf *.out *.fls *.fdb_latexmk *.run.xml *.synctex.gz *.xdv *~ *.lof *.lot
ifdef CPNAME
rm -f $(CPNAME).pdf $(CPNAME).tex
endif