summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-01-02 22:51:35 +0100
committerxengineering <me@xengineering.eu>2024-01-03 12:03:43 +0100
commita72e170df8344ac66c799156a744953cb762e08b (patch)
tree0a6d406527c8556da7e4c52358ef33c28035beca
parent5273564397c2f4ba82e6d60d35a34e1c5666eb0f (diff)
downloadsoundbox-a72e170df8344ac66c799156a744953cb762e08b.tar
soundbox-a72e170df8344ac66c799156a744953cb762e08b.tar.zst
soundbox-a72e170df8344ac66c799156a744953cb762e08b.zip
Move 'clean' target to root-level Makefile
This target removes the build directory and is thus repository-global.
-rw-r--r--Makefile4
-rw-r--r--mech/mech.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a94ae02..9767db2 100644
--- a/Makefile
+++ b/Makefile
@@ -2,4 +2,8 @@ BUILD_DIR := ./build
all: mech
+.PHONY: clean
+clean:
+ rm -rf $(BUILD_DIR)
+
include mech/mech.mk
diff --git a/mech/mech.mk b/mech/mech.mk
index 4359796..a537ca3 100644
--- a/mech/mech.mk
+++ b/mech/mech.mk
@@ -15,7 +15,3 @@ $(BUILD_DIR)/%.gcode: $(BUILD_DIR)/%.stl
$(BUILD_DIR)/%.stl: %.scad
mkdir -p $(dir $@)
openscad --hardwarnings --export-format binstl -o $@ $<
-
-.PHONY: clean
-clean:
- rm -rf $(BUILD_DIR)