blob: 1f80d35294191a53bcc54aab4eb9380c0e9a53a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
PARTS := bottom top back front
BUILD_DIR := ./build
STL := $(PARTS:%=$(BUILD_DIR)/%.stl)
GCODE := $(PARTS:%=$(BUILD_DIR)/%.gcode)
.PHONY: all
all: $(GCODE)
$(BUILD_DIR)/%.gcode: $(BUILD_DIR)/%.stl
mkdir -p $(dir $@)
prusa-slicer --output $@ --export-gcode $<
$(BUILD_DIR)/%.stl: %.scad
mkdir -p $(dir $@)
openscad --export-format binstl -o $@ $<
.PHONY: clean
clean:
rm -rf $(BUILD_DIR)
|