-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
93 lines (66 loc) · 2.96 KB
/
Makefile
File metadata and controls
93 lines (66 loc) · 2.96 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.PHONY: latex audio-pipeline pdf-pipeline clean copy
CC = xelatex
EXAMPLES_DIR = latex
RESUME_EN_DIR = latex/en/resume-en
RESUME_ZH_DIR = latex/zh/resume-zh
COVER_LETTER_DIR = latex/coverletter
INTRODUCTION_DIR = latex/en
INTRODUCTION_ZH_DIR = latex/zh
CV_DIR = latex/en
CV_ZH_DIR = latex/zh
RESUME_SRCS = $(shell find $(RESUME_EN_DIR) -name '*.tex')
RESUME_ZH_SRCS = $(shell find $(RESUME_ZH_DIR) -name '*.tex')
INTRODUCTION_SRCS = $(shell find $(INTRODUCTION_DIR) -name '*.tex')
INTRODUCTION_ZH_SRCS = $(shell find $(INTRODUCTION_ZH_DIR) -name '*.tex')
CV_SRCS = $(shell find $(CV_DIR) -name '*.tex')
CV_ZH_SRCS = $(shell find $(CV_ZH_DIR) -name '*.tex')
# Existing latex target
latex: $(foreach x, coverletter coverletter-zh resume-zh resume, $x.pdf)
resume: $(foreach x, resume-zh resume-zh-dark resume-en resume-en-dark, $x.pdf)
resume-en.pdf: $(RESUME_EN_DIR)/resume-en.tex $(RESUME_SRCS)
$(CC) -output-directory=$(RESUME_EN_DIR) $<
resume-en-dark.pdf: $(RESUME_EN_DIR)/resume-en-dark.tex $(RESUME_SRCS)
$(CC) -output-directory=$(RESUME_EN_DIR) $<
resume-zh.pdf: $(RESUME_ZH_DIR)/resume-zh.tex $(RESUME_ZH_SRCS)
$(CC) -output-directory=$(RESUME_ZH_DIR) $<
resume-zh-dark.pdf: $(RESUME_ZH_DIR)/resume-zh-dark.tex $(RESUME_ZH_SRCS)
$(CC) -output-directory=$(RESUME_ZH_DIR) $<
coverletter.pdf: $(COVER_LETTER_DIR)/coverletter.tex
$(CC) -output-directory=$(COVER_LETTER_DIR) $<
coverletter-zh.pdf: $(COVER_LETTER_DIR)/coverletter-zh.tex
$(CC) -output-directory=$(COVER_LETTER_DIR) $<
introduction-en.pdf: $(INTRODUCTION_DIR)/introduction-en.tex
$(CC) -output-directory=$(INTRODUCTION_DIR) $<
introduction-zh.pdf: $(INTRODUCTION_ZH_DIR)/introduction-zh.tex
$(CC) -output-directory=$(INTRODUCTION_ZH_DIR) $<
cv-en.pdf: $(CV_DIR)/cv-en.tex $(CV_SRCS)
$(CC) -output-directory=$(CV_DIR) $<
cv-zh.pdf: $(CV_ZH_DIR)/cv-zh.tex $(CV_ZH_SRCS)
$(CC) -output-directory=$(CV_ZH_DIR) $<
# New audio-pipeline target
audio-pipeline:
python audio-pipeline.py --task posts --n 10
# New pdf-pipeline target
pdf-pipeline:
python pdf-pipeline.py --task posts --n 10
# New cv-pipeline target
cv-pipeline: cvs copy-cv
pipelines: audio-pipeline pdf-pipeline cv-pipeline
introductions: introduction-en.pdf introduction-zh.pdf
cvs: cv-en.pdf cv-zh.pdf
# Clean target to remove generated files
clean:
rm -rf $(EXAMPLES_DIR)/*.pdf
copy:
mkdir -p assets/resume
cp $(RESUME_EN_DIR)/resume-en.pdf assets/resume/Zhiwei.Li.Resume.pdf
cp $(RESUME_EN_DIR)/resume-en-dark.pdf assets/resume/Zhiwei.Li.Resume.Dark.pdf
cp $(RESUME_ZH_DIR)/resume-zh.pdf assets/resume/Zhiwei.Li.Resume.ZH.pdf
cp $(RESUME_ZH_DIR)/resume-zh-dark.pdf assets/resume/Zhiwei.Li.Resume.ZH.Dark.pdf
copy-introduction:
cp latex/en/introduction-en.pdf assets/resume/Zhiwei.Li.Introduction.EN.pdf
cp latex/zh/introduction-zh.pdf assets/resume/Zhiwei.Li.Introduction.ZH.pdf
copy-cv:
cp latex/en/cv-en.pdf assets/resume/Zhiwei.Li.CV.EN.pdf
cp latex/zh/cv-zh.pdf assets/resume/Zhiwei.Li.CV.ZH.pdf
easy-resume: resume-en.pdf resume-en-dark.pdf copy