Use the sort-stl feature if it is available (not on mac?)

This commit is contained in:
Matt McWilliams 2023-04-05 23:02:45 -04:00
parent 0033f9669c
commit a783907da6
1 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,8 @@
PREFIX=intval2 PREFIX=intval2
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
@ -25,7 +26,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 PART=\"$(subst $(PREFIX)_,,$(subst .stl,,$(@F)))\" $< $(OPENSCAD) $(OPENSCAD_OPTIONS_STL) -o $@ -D PART=\"$(subst $(PREFIX)_,,$(subst .stl,,$(@F)))\" $<
$(LASER) : $(DXF)/$(PREFIX)_%.dxf : $(PREFIX).scad $(LASER) : $(DXF)/$(PREFIX)_%.dxf : $(PREFIX).scad
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@ -D PART=\"$(subst $(PREFIX)_,,$(subst .dxf,,$(@F)))\" $< $(OPENSCAD) $(OPENSCAD_OPTIONS_DXF) -o $@ -D PART=\"$(subst $(PREFIX)_,,$(subst .dxf,,$(@F)))\" $<