home.wezm.net/Makefile

24 lines
621 B
Makefile

STATIC_HTML=\
public/artefacts.html \
public/calculators.html \
public/computers.html \
public/pineapples.html \
public/quiz.html \
public/sitemap.html
all: $(STATIC_HTML)
# Note: minijinja-cli creates files with 600 perms, due to using a tempfile
# library to generate output. This is fixed on main, waiting for a new release.
public/%.html: templates/%.html.j2 data.json
minijinja-cli --strict $^ -o $@
chmod 644 $@
data.json:
date | jaq -Rs '{generated: .}' > $@
deploy:
ssh -t chimera-panda 'cd home.wezm.net && git pull --ff-only && make && doas dinitctl restart nonsense'
clean:
rm -f public/*.html