-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 796 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
LASTNAME = chotard
FIRSTNAME = alexis
export CV = ${LASTNAME}_${FIRSTNAME}_cv
export CVFR = ${CV}_fr
export CVEN = ${CV}_en
export SRCDIR = ${PWD}/src
export OUTDIR = ${PWD}/output
export VIEWER = zathura
all:: fr en fr_tech
fr en fr_tech::
mkdir -p ${OUTDIR}
docker run --rm -v ${SRCDIR}:/var/sources -v ${OUTDIR}:/var/output horgix/moderntimeline:latest xelatex --output-directory /var/output ${CV}[email protected]
docker run --rm -v ${OUTDIR}:/var/output busybox chown `id -u`:`id -g` /var/output/ -R
ln -s -f ${OUTDIR}/${CV}[email protected] .
fredit::
${EDITOR} ${SRCDIR}/${CVFR}.tex
enedit::
${EDITOR} ${SRCDIR}/${CVEN}.tex
frdisplay::
${VIEWER} ${CVFR}.pdf
endisplay::
${VIEWER} ${CVEN}.pdf
clean::
rm -f ${OUTDIR}/*.{aux,log,out}
distclean:: clean
rm -rf *.pdf ${OUTDIR}
nuke:: distclean