Add sort-stl capabilties to makefile for OpenSCAD models
This commit is contained in:
parent
e5a915ae7c
commit
3cfa2a28a0
|
@ -25,7 +25,8 @@
|
||||||
PREFIX=intval3
|
PREFIX=intval3
|
||||||
|
|
||||||
OPENSCAD=openscad
|
OPENSCAD=openscad
|
||||||
OPENSCAD_OPTIONS=-D VERBOSE=false
|
OPENSCAD_OPTIONS_STL=--enable sort-stl -D VERBOSE=false
|
||||||
|
OPENSCAD_OPTIONS_DXF=-D VERBOSE=false
|
||||||
|
|
||||||
STL=./stl
|
STL=./stl
|
||||||
DXF=./dxf
|
DXF=./dxf
|
||||||
|
@ -48,7 +49,7 @@ cleanall:
|
||||||
# Dependencies for models
|
# Dependencies for models
|
||||||
|
|
||||||
$(MODELS) : $(STL)/$(PREFIX)_%.stl : $(PREFIX).scad
|
$(MODELS) : $(STL)/$(PREFIX)_%.stl : $(PREFIX).scad
|
||||||
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@ -D MODEL=\"$(subst $(PREFIX)_,,$(subst .stl,,$(@F)))\" $<
|
$(OPENSCAD) $(OPENSCAD_OPTIONS_STL) -o $@ -D MODEL=\"$(subst $(PREFIX)_,,$(subst .stl,,$(@F)))\" $<
|
||||||
|
|
||||||
$(LASER) : $(DXF)/$(PREFIX)_%.dxf : $(PREFIX).scad
|
$(LASER) : $(DXF)/$(PREFIX)_%.dxf : $(PREFIX).scad
|
||||||
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@ -D LASER=\"$(subst $(PREFIX)_,,$(subst .dxf,,$(@F)))\" $<
|
$(OPENSCAD) $(OPENSCAD_OPTIONS_DXF) -o $@ -D LASER=\"$(subst $(PREFIX)_,,$(subst .dxf,,$(@F)))\" $<
|
Loading…
Reference in New Issue