mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
ede47ff895
Graphviz on Alpine doesn't support JPG
18 lines
283 B
Makefile
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 .
|