Makefile: add rules to generate .svg files as part of make doc
This commit is contained in:
7
Makefile
7
Makefile
@@ -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
|
||||
|
Reference in New Issue
Block a user