diff --git a/Makefile b/Makefile index e85a873..5d0fa02 100644 --- a/Makefile +++ b/Makefile @@ -67,12 +67,12 @@ install: install -m644 build/case.stl $(SHAREDIR) install -m644 build/case.gcode $(SHAREDIR) -%/pinephone_case.vtk: cq_toplevel.py src/*.py +%/pinephone_case.vtk %/pinephone_case.vtk.js: cq_toplevel.py src/*.py mkdir -p "$(@D)" - ./cq_toplevel.py --export-vtk $@ -%/pinephone_phone.vtk: cq_toplevel.py src/*.py + ./cq_toplevel.py --export-vtk $*/pinephone_case.vtk +%/pinephone_phone.vtk %/pinephone_phone.vtk.js: cq_toplevel.py src/*.py mkdir -p "$(@D)" - ./cq_toplevel.py --render-phone-only --export-vtk $@ + ./cq_toplevel.py --render-phone-only --export-vtk $*/pinephone_phone.vtk build/web-viewer/vtk.js: doc.in/vtk.js mkdir -p build/web-viewer @@ -80,7 +80,7 @@ build/web-viewer/vtk.js: doc.in/vtk.js build/web-viewer/renderWindow.js: doc.in/renderWindow.js mkdir -p build/web-viewer cp $< $@ -build/web-viewer/index.html: doc.in/index.html build/web-viewer/vtk.js build/web-viewer/renderWindow.js build/web-viewer/pinephone_case.vtk build/web-viewer/pinephone_phone.vtk +build/web-viewer/index.html: doc.in/index.html build/web-viewer/vtk.js build/web-viewer/renderWindow.js build/web-viewer/pinephone_case.vtk.js build/web-viewer/pinephone_phone.vtk.js mkdir -p build/web-viewer cp $< $@