summaryrefslogtreecommitdiff
path: root/mech
diff options
context:
space:
mode:
Diffstat (limited to 'mech')
-rw-r--r--mech/mech.mk (renamed from mech/Makefile)10
1 files changed, 5 insertions, 5 deletions
diff --git a/mech/Makefile b/mech/mech.mk
index 1f80d35..6807c03 100644
--- a/mech/Makefile
+++ b/mech/mech.mk
@@ -1,10 +1,10 @@
+MECH_BUILD_DIR := $(BUILD_DIR)/mech
PARTS := bottom top back front
-BUILD_DIR := ./build
-STL := $(PARTS:%=$(BUILD_DIR)/%.stl)
-GCODE := $(PARTS:%=$(BUILD_DIR)/%.gcode)
+STL := $(PARTS:%=$(MECH_BUILD_DIR)/%.stl)
+GCODE := $(PARTS:%=$(MECH_BUILD_DIR)/%.gcode)
-.PHONY: all
-all: $(GCODE)
+.PHONY: mech
+mech: $(GCODE)
$(BUILD_DIR)/%.gcode: $(BUILD_DIR)/%.stl
mkdir -p $(dir $@)