From 1a01a4f05e20d4be5ba0e60aa03578ab54be7aa2 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Mon, 21 Aug 2023 22:47:05 -0400 Subject: [PATCH] Update sprocketed_roller --- scad/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scad/Makefile diff --git a/scad/Makefile b/scad/Makefile new file mode 100644 index 0000000..5657763 --- /dev/null +++ b/scad/Makefile @@ -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 $< \ No newline at end of file