-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 965 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (28 loc) · 965 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
28
29
30
31
32
33
34
35
# Makefile for Dingjiw
# Compiling method: latexmk/xelatex/pdflatex
# JOBNAME="个人社会学视角下的世界与中国—一个平民的独白(未完成)"
JOBNAME="main"
METHOD = latexmk -jobname=$(JOBNAME)
# Basename of thesis
DINGJIAMAIN = main
# Basename of shuji
SHUJIMAIN = shuji
TEMPFILE := $(shell find . -type f -name "*.aux" -o -type f -name "*.log" -o -name "_region*")
TEMPDIR := $(shell find . -maxdepth 4 -type d -name "auto")
DINGJIACONTENTS=$(DINGJIAMAIN).tex data/*.tex $(FIGURES)
DINGJIACLEAN= $(TEMPFILE) $(TEMPDIR) svg-* tmpoutput/
# NOTE: update this to reflect your local file types.
FIGURES=$(wildcard figures/*.eps figures/*.pdf figures/*.jpg figures/*.png)
# make deletion work on Windows
RM = rm -f
OPEN = okular
.PHONY: all doc clean distclean
all: doc
doc: $(DINGJIAMAIN).tex
$(METHOD) $(DINGJIAMAIN)
clean:
$(METHOD) -c $(JOBNAME).aux
-@$(RM) *~
-@$(RM) -rf $(DINGJIACLEAN)
distclean: clean
-@$(RM) $(JOBNAME).pdf