nixhacks.net/Makefile
2022-08-07 13:40:39 +03:00

22 lines
442 B
Makefile

all: html
help:
@echo 'Run without target to build all (html, rss)'
@echo Available targets:
@echo 'html render HTML'
@echo 'serve serve site on localhost'
@echo 'css <theme> generate Pygments stylesheet'
html:
python rst_blg.py
serve:
http-server ./build
css:
mkdir -p assets/css/pygments
pygmentize -f html -S $(filter-out $@,$(MAKECMDGOALS)) -a .highlight > assets/css/pygments/$(filter-out $@,$(MAKECMDGOALS)).css
%:
@: