1 #openscad -o output/bushing.stl bushing.scad
3 # Type of 3D Model file to output. Known to work with AMF or STL.
5 INCLUDES
= $(wildcard inc
/*.scad
)
7 MODELS
= $(filter-out configuration.scad
, $(wildcard *.scad
))
9 STL_FILES_1
= $(foreach src
, $(MODELS
),output
/$(src
))
10 STL_FILES
= $(STL_FILES_1
:%.scad
=%.
$(OUTPUT_TYPE
))
14 MODELS_EXTRAS
= $(wildcard extras
/*.scad
)
15 STL_EXTRAS_1
= $(foreach src
, $(MODELS_EXTRAS
),output
/$(src
))
16 STL_EXTRAS
= $(STL_EXTRAS_1
:%.scad
=%.
$(OUTPUT_TYPE
))
20 output
/%.
$(OUTPUT_TYPE
): %.scad
$(INCLUDES
) configuration.scad
24 rm output
/*.
$(OUTPUT_TYPE
) output
/*.gcode output
/extras
/*.stl output
/extras
/*.gcode