1234567891011121314151617181920212223242526272829303132333435363738 |
- # ---------- ---------- ---------- ---------- ---------- ----------
- #
- # This makefile generates the peers website.
- #
- # ---------- ---------- ---------- ---------- ---------- ----------
- UserAt=$(if $(u),$(u)@,)
- target: prerequisites
- prerequisites: help
- # ---------- ---------- ---------- ---------- ---------- ----------
- # NOTE: The remaining recipes follow:
- # ---------- ---------- ---------- ---------- ---------- ----------
- help:
- @echo See the Makefile for more info.
- deps:
- @if [ ! -d lib ]; then\
- mkdir lib;\
- fi
- @if [ ! -d lib/peers-template ]; then\
- cd lib && git clone https://$(UserAt)notabug.org/peers/peers-template.git;\
- fi
- build:
- pelican -s pelicanconf.py -t lib/peers-template/themes/pelican content/
- clean:
- rm -rf output
- server:
- cd output && python3 -m http.server
- .PHONY: build clean server deps help
|