blob: ca39a7c5e341e6205cb575217de20566b5f77ad1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
PRINTER := anycubic_i3_mega_s
PRINTER_CONFIG := $(PRINTER:%=mech/prusa-slicer/%.ini)
MECH_BUILD_DIR := $(BUILD_DIR)/mech
PARTS := assembly production pcb_case/tolerance_tests
STL := $(PARTS:%=$(MECH_BUILD_DIR)/%.stl)
GCODE := $(PARTS:%=$(MECH_BUILD_DIR)/%.gcode)
.PHONY: mech
mech: $(GCODE) $(STL)
$(BUILD_DIR)/%.gcode: $(BUILD_DIR)/%.stl
mkdir -p $(dir $@)
prusa-slicer --load $(PRINTER_CONFIG) --output $@ --export-gcode $<
$(BUILD_DIR)/%.stl: %.scad
mkdir -p $(dir $@)
openscad --hardwarnings --export-format binstl -o $@ $<
|