Skip to content

Commit bdeb2d0

Browse files
committed
add Makefile
1 parent f401d27 commit bdeb2d0

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
SRC = $(wildcard *.tex)
2+
3+
PDFS = $(SRC:.tex=.pdf)
4+
5+
all: clean pdf
6+
7+
en: clean xelatex resume.tex
8+
9+
zh_CN: clean xelatex resume-zh_CN.tex
10+
11+
pdf: clean $(PDFS)
12+
13+
%.pdf: %.tex
14+
xelatex $<
15+
16+
ifeq ($(OS),Windows_NT)
17+
# on Windows
18+
RM = cmd //C del
19+
else
20+
# on Unix/Linux
21+
RM = rm -f
22+
endif
23+
24+
clean:
25+
$(RM) *.log *.aux *.bbl *.blg *.synctex.gz *.out *.toc *.lof *.idx *.ilg *.ind *.pdf

0 commit comments

Comments
 (0)