26 lines
376 B
Makefile
26 lines
376 B
Makefile
SRC = $(wildcard *.tex)
|
|
|
|
PDFS = $(SRC:.tex=.pdf)
|
|
|
|
all: clean pdf
|
|
|
|
en: clean xelatex resume.tex
|
|
|
|
zh_CN: clean xelatex resume-zh_CN.tex
|
|
|
|
pdf: clean $(PDFS)
|
|
|
|
%.pdf: %.tex
|
|
xelatex $<
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
# on Windows
|
|
RM = cmd //C del
|
|
else
|
|
# on Unix/Linux
|
|
RM = rm -f
|
|
endif
|
|
|
|
clean:
|
|
$(RM) *.log *.aux *.bbl *.blg *.synctex.gz *.out *.toc *.lof *.idx *.ilg *.ind *.pdf
|