manymanymany-varia-websites/makefile
2021-01-19 22:26:32 +01:00

19 lines
546 B
Makefile

default: run
core-plugins:
@if [ ! -d "pelican-plugins" ]; then git clone https://github.com/getpelican/pelican-plugins; fi
custom-plugins:
@if [ ! -d "plugins-custom" ]; then git clone https://git.vvvvvvaria.org/varia/plugins-custom; fi
dependencies:
@if [ ! -d ".venv" ]; then python3 -m venv .venv && .venv/bin/pip install -r requirements.txt; fi
run: core-plugins custom-plugins dependencies
@.venv/bin/pelican --autoreload
publish:
@.venv/bin/pelican -o /var/www/html/
.PHONY: core-plugins custom-plugins dependencies run publish