bolex_rewind_key/Makefile

24 lines
691 B
Makefile

SRC=bolex_rewind_key.scad
IM=convert
OPENSCAD=openscad
OPENSCAD_OPTIONS=-D VERBOSE=false
THEME=DeepOcean
OPENSCAD_IMAGE=--viewall --render --imgsize=512,512 --colorscheme=$(THEME)
all: bolex_rewind_key bolex_rewind_key_handle
bolex_rewind_key : $(SRC)
echo "Generating $@.stl from $(SRC)..."
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@.stl -D PART=\"$@\" $(SRC)
$(OPENSCAD) $(OPENSCAD_IMAGE) -o $@.png -D PART=\"$@\" $(SRC)
$(IM) $@.png $@.jpg
rm $@.png
bolex_rewind_key_handle : $(SRC)
echo "Generating $@.stl from $(SRC)..."
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@.stl -D PART=\"$@\" $(SRC)
$(OPENSCAD) $(OPENSCAD_IMAGE) -o $@.png -D PART=\"$@\" $(SRC)
$(IM) $@.png $@.jpg
rm $@.png