Makefile: add rules to generate .svg files as part of make doc

This commit is contained in:
2024-02-05 04:20:03 +00:00
parent e839bb489c
commit 5ed54c4aad

View File

@@ -80,7 +80,12 @@ build/web-viewer/vtk.js: doc.in/vtk.js
build/web-viewer/index.html: doc.in/index.html build/web-viewer/vtk.js build/web-viewer/pinephone_case.vtk build/web-viewer/pinephone_phone.vtk
mkdir -p build/web-viewer
ln -sf ../../doc.in/index.html $@
doc: build/web-viewer/index.html
%.svg: cq_toplevel.py src/*.py
mkdir -p "$(@D)"
./cq_toplevel.py --export-svg $@
doc: build/web-viewer/index.html build/images/pinephone_front.svg build/images/pinephone_back.svg build/images/pinephone_right.svg
clean:
rm -rf build