-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 1.04 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!usr/bin/sh -we
CC := xelatex
BB := biber
FLAGS := -shell-escape -halt-on-error -interaction=batchmode
CV := FrancescoArgentieri-Resume.tex
CL := #modelling_eng-cover-letter.tex
BIB := $(wildcard *.bib)
# color definition
blue := \033[0;34m
yellow := \033[0;33m
green := \033[0;32m
end := \033[0m
.PHONY: clean resume
all: clean resume
build:
docker build -t cv .
docker-run:
docker run -it -v ${PWD}:/cv cv
resume:
@python3 resume.py information.json \
--template Friggeri \
--output FrancescoArgentieri-Resume.tex
# copy outside build folder pdf generated
cp -f build/FrancescoArgentieri-Resume.pdf ${PWD}
letter:
@echo "${blue}----------------------------------${end}"
@echo "${blue}===== Build xelatex document =====${end}"
@echo "${blue}----------------------------------${end}"
@echo
@echo "${yellow}compling... x1${end}"
${CC} ${FLAGS} ${CL}
@echo "${yellow}compling... x2${end}"
${CC} ${FLAGS} ${CL}
@echo "${yellow}compling... x3${end}"
${CC} ${FLAGS} ${CL}
@echo "${green}Complete${end}"
clean:
rm -rf build