2024-10-17 00:13:26 +00:00
|
|
|
|
|
|
|
SRC=scad/bolex_base_plate.scad
|
|
|
|
IM=convert
|
|
|
|
OPENSCAD=openscad
|
2024-11-11 04:28:27 +00:00
|
|
|
OPENSCAD_OPTIONS=--enable manifold -D VERBOSE=false --export-format=asciistl
|
2024-10-17 00:13:26 +00:00
|
|
|
THEME=DeepOcean
|
2024-11-11 04:28:27 +00:00
|
|
|
OPENSCAD_IMAGE=--enable manifold --viewall --render --imgsize=512,512 --colorscheme=$(THEME)
|
2024-10-17 00:13:26 +00:00
|
|
|
ORDER_STL=python3 scad/common/c14n_stl.py
|
|
|
|
|
|
|
|
all: bolex_base_plate
|
|
|
|
|
|
|
|
bolex_base_plate : $(SRC)
|
|
|
|
echo "Generating $@.stl from $(SRC)..."
|
|
|
|
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o stl/$@.stl -D PART=\"$@\" $(SRC)
|
|
|
|
$(ORDER_STL) stl/$@.stl
|
|
|
|
$(OPENSCAD) $(OPENSCAD_IMAGE) -o img/$@.png -D PART=\"$@\" $(SRC)
|
|
|
|
$(IM) img/$@.png img/$@.jpg
|
|
|
|
rm img/$@.png
|