-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (27 loc) · 860 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
OUTPUT=build
SOURCES=$(wildcard tex/*)
FOOTER=--include-after-body=tex/footer.tex
HEADER=--from=markdown+yaml_metadata_block \
--include-in-header=tex/options.sty \
--include-before-body=tex/header.tex \
--variable subparagraph=false
# Targets
$(OUTPUT)/resume.pdf: $(SOURCES) resume.md
mkdir -p $(OUTPUT)
pandoc $(HEADER) -o $(OUTPUT)/resume.pdf resume.md
$(OUTPUT)/resume.tex: $(SOURCES) resume.md
mkdir -p $(OUTPUT)
pandoc $(HEADER) -o $(OUTPUT)/resume.tex resume.md
$(OUTPUT)/resume.html: $(SOURCES) resume.md
mkdir -p $(OUTPUT)
pandoc -o $(OUTPUT)/resume.html resume.md
$(OUTPUT)/letter.pdf: $(SOURCES) letter.md
mkdir -p $(OUTPUT)
pandoc $(HEADER) $(FOOTER) -o $(OUTPUT)/letter.pdf letter.md
# Aliases
pdf: $(OUTPUT)/resume.pdf
tex: $(OUTPUT)/resume.tex
html: $(OUTPUT)/resume.html
letter: $(OUTPUT)/letter.pdf
clean:
rm -rf $(OUTPUT)