-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (25 loc) · 1.21 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
.PHONY: all clean upload resume resume-html resume-pdf resume-msword cover
default: resume-html
all: resume-html resume-pdf cover-html
clean:
rm output/*
upload: resume.md resume-html resume-pdf resume-msword
scp -p resume.md output/resume.html output/resume.pdf www:/var/www/www/
# I suppose I could have used variables instead of these alias rules...
resume-html: output/resume.html
resume-pdf: output/resume.pdf
resume-msword: output/resume.docx
cover-html: output/cover.html
# a convenience alias
resume: resume-html
output/resume-footer.html: resume.md Makefile
echo '<div class="footer">Last updated '$(shell date)'</div>' >$@
output/resume.html: resume.md header.html Makefile output/resume-footer.html
pandoc --from markdown+auto_identifiers+pandoc_title_block $< -o $@ --section-divs --include-in-header=header.html --include-after-body=output/resume-footer.html
output/resume.pdf: output/resume.html
# pandoc $< --pdf-engine=weasyprint -o $@
pandoc $< --pdf-engine=wkhtmltopdf -o $@
output/resume.docx: output/resume.html
pandoc $< -o $@
output/cover.html: cover.md style-cover.html Makefile
pandoc --from markdown+auto_identifiers+pandoc_title_block $< -o $@ --section-divs --include-in-header=style-cover.html