-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 808 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
35
36
# Makefile to build PDF, Markdown, and plaintext CV from YAML.
#
# Brandon Amos <http://bamos.io>
BLOG_DIR=$(HOME)/repos/blog
all: gen/cv.pdf gen/cv.md
gen/cv.tex gen/cv.md: cv.yaml generate.py publications.bib \
tmpl/cv-section.tmpl.tex tmpl/cv.tmpl.tex \
tmpl/cv-section.tmpl.md tmpl/cv.tmpl.md
./generate.py
gen/cv.pdf: gen/cv.tex publications.bib
cd gen && \
latexmk --pdf && \
latexmk -c
.PHONY: stage
stage: gen/cv.pdf gen/cv.md
cp gen/cv.pdf $(BLOG_DIR)/data
cp gen/cv.md $(BLOG_DIR)
.PHONY: jekyll
jekyll: stage
cd $(BLOG_DIR) && jekyll server
push: stage
git -C $(BLOG_DIR) add $(BLOG_DIR)/data/cv.pdf
git -C $(BLOG_DIR) add $(BLOG_DIR)/cv.md
git -C $(BLOG_DIR) commit -m "Update vitae."
git -C $(BLOG_DIR) push
.PHONY: clean
clean:
rm -rf *.aux *.out *.log gen/* __pycache__