forked from GiantMolecularCloud/my-resume
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
29 lines (23 loc) · 813 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
TITLE ?= Resume - Erik Nijenhuis
AUTHOR ?= Erik Nijenhuis
ORG ?= Xerdi
COPYRIGHT ?= Copyright © $(shell date +%Y) \"$(AUTHOR)\"
CONTACT ?= Unknown
SUBJECT ?= Curriculum Vitae $(AUTHOR) - $(CONTACT)
.PHONY: example.pdf
draft: example.xmpdata
latexmk --pvc --lualatex --jobname=example --interaction=nonstopmode resume
latexmk -c example
%.xmpdata: resume.tex keywords.sh
echo "\
\Title{$(TITLE)}\n\
\Author{$(AUTHOR)}\n\
\Org{$(ORG)}\n\
\Copyright{$(COPYRIGHT)}\n\
\Subject{$(SUBJECT)}\n\
\Keywords{$$(bash keywords.sh resume.tex)}" > $@
example.pdf: example.xmpdata my-resume.cls resume.tex picture.jpg
lualatex --jobname example resume
latexmk -c example.aux
screenshots: example.pdf
convert -verbose -density 150 example.pdf -quality 100 -background white -alpha remove -alpha off resume.png