-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (13 loc) · 740 Bytes
/
Makefile
File metadata and controls
19 lines (13 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include defaults.mk
.PHONY: init download-css generate-html generate-pdf
OUTDIR = files
CSS_URL = https://raw.githubusercontent.com/MacDownApp/macdown/master/MacDown/Resources/Styles/GitHub2.css
init:
@mkdir -p $(OUTDIR)
sed 's/\$$address/$(address)/g;s/\$$email/$(email)/g;s/\$$phone_number/$(phone_number)/g;s/\$$linkedin/$(linkedin)/g;s/\$$github/$(github)/g' resume.md > $(OUTDIR)/resume.md
download-css: init
curl -s $(CSS_URL) -o $(OUTDIR)/GitHub2.css
generate-html: download-css
pandoc -c GitHub2.css -s $(OUTDIR)/resume.md -o $(OUTDIR)/resume.html -M pagetitle:'Alex Trepca Resume'
generate-pdf: generate-html
wkhtmltopdf --enable-local-file-access --encoding utf-8 $(OUTDIR)/resume.html $(OUTDIR)/alex-trepca-resume.pdf