forked from mszep/pandoc_resume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OMakefile
36 lines (30 loc) · 769 Bytes
/
OMakefile
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
PANDOC = pandoc
.PHONY: pdf html docx rtf clean
pdf: resume.pdf
resume.pdf: resume.tex
context resume.tex
resume.tex: resume.md style_chmduquesne.tex
$(PANDOC) --standalone --template style_chmduquesne.tex \
--from markdown --to context \
-V papersize=A4 \
-o $@ resume.md
html: resume.html
resume.html: resume.md style_chmduquesne.css
$(PANDOC) --standalone -H style_chmduquesne.css \
--from markdown --to html \
-o $@ resume.md
docx: resume.docx
resume.docx: resume.md
$(PANDOC) -s -S resume.md -o resume.docx
rtf: resume.rtf
resume.rtf: resume.md
$(PANDOC) -s -S resume.md -o resume.rtf
clean:
rm -f resume.html
rm -f resume.tex
rm -f resume.tuc
rm -f resume.log
rm -f resume.pdf
rm -f resume.docx
rm -f resume.rtf
.DEFAULT: pdf html docx rtf