Makefile: add a make doc rule

This commit is contained in:
2024-02-05 03:42:50 +00:00
parent 2a8b5382ef
commit afb41b4483

View File

@@ -67,10 +67,17 @@ install:
install -m644 build/case.stl $(SHAREDIR)
install -m644 build/case.gcode $(SHAREDIR)
%/pinephone_case.vtk: cq_toplevel.py src/*.py
./cq_toplevel.py --export-vtk $@
%/pinephone_phone.vtk: cq_toplevel.py src/*.py
./cq_toplevel.py --render-phone-only --export-vtk $@
doc: build/doc-vtk/pinephone_case.vtk build/doc-vtk/pinephone_phone.vtk
clean:
rm -rf build
build/case.stl: src/*.py
build/case.stl: cq_toplevel.py src/*.py
mkdir -p $(shell dirname $@)
./cq_toplevel.py --export-stl $@