-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 848 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (30 loc) · 848 Bytes
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: book
venv=. venv/bin/activate &&
venv:
python -m venv venv
$(venv) pip install pyyaml feedparser ipython requests
serve: tags
jorge serve
build: tags
jorge build
.PHONY: tags
tags:
@rm -rf src/blog/tags/*.html
@for tag in $$(jorge meta 'site.tags|keys|join:" "' | tr -d '"'); do \
{ echo "---"; \
echo "layout: tags"; \
echo "tag: $$tag"; \
echo "---"; \
} > "src/blog/tags/$$tag.html"; \
echo "src/blog/tags/$$tag.html"; \
done
push: build
rsync -vPrz --delete target/ root@olano.dev:/var/www/olano.dev
# builds and uploads the latest version of the resume by first pushing the site
resume: push
wkhtmltopdf --print-media-type --load-error-handling ignore https://olano.dev/resume src/resume.pdf
make push
book:
cd book && make && mv book.pdf book.epub ../src/
reads: venv
$(venv) ./scripts/reads.py