-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 948 Bytes
/
Makefile
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
.PHONY: samples all
CC = xelatex
SAMPLES_DIR = samples
SAMPLES_RESUME_SRCS = $(shell find $(SAMPLES_DIR)/resume -name '*.tex')
SAMPLES_CV_SRCS = $(shell find $(SAMPLES_DIR)/cv -name '*.tex')
SRCS_DIR = src
SRCS_CV_INCLUDES = $(shell find $(SRCS_DIR)/cv/* -name '*.tex')
DIST_DIR = dist
all: cv
cv: $(SRCS_DIR)/cv.tex $(SRCS_CV_INCLUDES)
$(CC) -output-directory=$(DIST_DIR) $<
extended: $(SRCS_DIR)/cv_extended.tex $(SRCS_CV_INCLUDES)
$(CC) -output-directory=$(DIST_DIR) $<
samples: $(foreach x, coverletter cv resume, samples_$x.pdf)
samples_resume.pdf: $(SAMPLES_DIR)/resume.tex $(SAMPLES_RESUME_SRCS)
$(CC) -output-directory=$(DIST_DIR) $<
samples_cv.pdf: $(SAMPLES_DIR)/cv.tex $(SAMPLES_CV_SRCS)
$(CC) -output-directory=$(DIST_DIR) $<
samples_coverletter.pdf: $(SAMPLES_DIR)/coverletter.tex
$(CC) -output-directory=$(DIST_DIR) $<
clean:
rm -rf $(DIST_DIR)/*.pdf \
$(DIST_DIR)/*.aux \
$(DIST_DIR)/*.log \
$(DIST_DIR)/*.out