25 lines
907 B
Makefile
Raw Normal View History

2021-10-04 18:23:09 -04:00
content := $(wildcard content/*.md themes/even/sass/*.scss themes/even/static/* themes/even/templates/*.html themes/even/templates/categories/*.html themes/even/templates/shortcodes/*.html themes/even/templates/tags/*.html public/static/pdf/*.pdf public/static/img/*)
2021-09-29 18:07:15 -04:00
build: content/.built static/pdf/resume-jeremy-wall.pdf
2020-04-12 18:01:03 -04:00
all: build deploy
2021-10-09 07:55:16 -04:00
content/.built: $(content) static/pdf/resume-jeremy-wall.pdf
2021-09-29 18:07:15 -04:00
nix-shell -p zola --command "zola build -o public/"
2020-04-12 18:01:03 -04:00
touch content/.built
2021-10-04 18:23:09 -04:00
resume: static/pdf/resume-jeremy-wall.pdf
2021-09-29 18:07:15 -04:00
static/pdf/resume-jeremy-wall.pdf: resume/resume.sil resume/resume.lua
mkdir -p static/pdf/
mkdir -p ~/.local/share/fonts
cp resume/.fonts/* ~/.local/share/fonts/
2021-10-04 18:23:09 -04:00
nix-shell -p sile --command "sile --debug classes -o $@ resume/resume.sil"
2021-09-29 18:07:15 -04:00
2021-10-09 07:55:16 -04:00
publish: build
2020-04-12 18:01:03 -04:00
cd public
gsutil -m rsync -d -r public gs://jeremy.marzhillstudios.com/
clean:
rm -f content/.built
rm -rf generated/*