forked from varia/varia.website
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
400 B
15 lines
400 B
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
|
|
|
|
run: core-plugins dependencies
|
|
@.venv/bin/pelican --autoreload
|
|
|
|
publish:
|
|
@.venv/bin/pelican -o /var/www/html/
|
|
|
|
.PHONY: core-plugins dependencies run publish
|
|
|