Makefile: create build/ directories before generating output
This commit is contained in:
7
Makefile
7
Makefile
@@ -68,13 +68,17 @@ install:
|
||||
install -m644 build/case.gcode $(SHAREDIR)
|
||||
|
||||
%/pinephone_case.vtk: cq_toplevel.py src/*.py
|
||||
mkdir -p "$(@D)"
|
||||
./cq_toplevel.py --export-vtk $@
|
||||
%/pinephone_phone.vtk: cq_toplevel.py src/*.py
|
||||
mkdir -p "$(@D)"
|
||||
./cq_toplevel.py --render-phone-only --export-vtk $@
|
||||
|
||||
build/web-viewer/vtk.js: doc.in/vtk.js
|
||||
mkdir -p build/web-viewer
|
||||
ln -sf ../../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
|
||||
|
||||
@@ -82,10 +86,11 @@ clean:
|
||||
rm -rf build
|
||||
|
||||
build/case.stl: cq_toplevel.py src/*.py
|
||||
mkdir -p $(shell dirname $@)
|
||||
mkdir -p "$(@D)"
|
||||
./cq_toplevel.py --export-stl $@
|
||||
|
||||
%.gcode: %.stl
|
||||
mkdir -p $(shell dirname $@)
|
||||
slic3r $(SLIC3R_FLAGS) $< -o $@
|
||||
|
||||
.PHONY: all install clean
|
||||
|
Reference in New Issue
Block a user