-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (28 loc) · 930 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
.PHONY: force
source := ${resume}
target != basename -s.markdown ${resume}
target != basename -s.mdown ${target}
target != basename -s.mkdn ${target}
target != basename -s.mkd ${target}
target != basename -s.mdwn ${target}
target != basename -s.md ${target}
target := $(addsuffix .pdf, ${target})
date_build != date '+%d.%m.%y'
variables_storage := ./variables.yaml
${target}: variables.yaml ${source}
pandoc \
${source} \
--output=${target} \
--variable=papersize:A4 \
--variable=mainfont:'LiberationSans-Regular.ttf' \
--variable=mainfontoptions:BoldFont='LiberationSans-Bold.ttf' \
--variable=mainfontoptions:ItalicFont='LiberationSans-Italic.ttf' \
--variable=colorlinks \
--variable=linkstyle:bold \
--variable=urlcolor:NavyBlue \
--variable=geometry:margin=1in \
--pdf-engine=xelatex \
--filter=pandoc-mustache
${variables_storage}: force
echo "\"date_build\": ${date_build}" >${variables_storage}
force: