manymanymany-varia-websites/makefile

16 lines
409 B
Makefile
Raw Normal View History

2021-01-19 22:16:57 +01:00
default: run
core-plugins:
@if [ ! -d "pelican-plugins" ]; then git clone https://github.com/getpelican/pelican-plugins; fi
dependencies:
@if [ ! -d ".venv" ]; then python3 -m venv .venv && .venv/bin/pip install -r requirements.txt; fi
2021-01-19 22:33:28 +01:00
run: core-plugins dependencies
@.venv/bin/pelican --autoreload --listen
2021-01-19 22:16:57 +01:00
2021-01-19 22:26:32 +01:00
publish:
@.venv/bin/pelican -o /var/www/html/
2021-01-19 22:33:28 +01:00
.PHONY: core-plugins dependencies run publish