Update sprocketed_roller

This commit is contained in:
Matt McWilliams 2023-08-21 22:47:05 -04:00
parent b0305ae6da
commit 1a01a4f05e
1 changed files with 23 additions and 0 deletions

23
scad/Makefile Normal file
View File

@ -0,0 +1,23 @@
PREFIX=mcopy
OPENSCAD=openscad
OPENSCAD_OPTIONS=-D VERBOSE=false
PYTHON=python
ORDERING_SCRIPT=common/c14n_stl.py
ECHO=echo
STL=../stl
MCOPY_RAILS=mcopy_rails.scad
MCOPY_RAILS_PARTS=$(shell bash parts.sh $MCOPY_RAILS)
all: directories models
directories:
mkdir -p $(STL)
models: directories $(MCOPY_RAILS)
$(MCOPY_RAILS) : $(STL)/mcopy_rails_%.stl
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $(STL)/mcopy_rails_$@.stl -D PART=\"$(subst $(PREFIX)_,,$(subst .stl,,$(@F)))\" $<
$(PYTHON) $(ORDERING_SCRIPT) $(STL)/mcopy_rails_$@.stl $<