khuedoan-homelab/docs/Makefile
Khue Doan ede47ff895 docs: use PNG instead of JPEG for diagrams
Graphviz on Alpine doesn't support JPG
2022-02-02 09:02:30 +07:00

18 lines
283 B
Makefile

.POSIX:
default: book
.PHONY: diagrams
diagrams:
cd diagrams \
&& python3 -m venv .venv \
&& source .venv/bin/activate \
&& pip3 install -r requirements.txt \
&& python3 *.py
mkdir -p src/images
cp diagrams/*.png src/images/
.PHONY: book
book: diagrams
mdbook build .