diff options
author | xengineering <me@xengineering.eu> | 2024-01-02 22:51:35 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-03 12:03:43 +0100 |
commit | a72e170df8344ac66c799156a744953cb762e08b (patch) | |
tree | 0a6d406527c8556da7e4c52358ef33c28035beca | |
parent | 5273564397c2f4ba82e6d60d35a34e1c5666eb0f (diff) | |
download | soundbox-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-- | Makefile | 4 | ||||
-rw-r--r-- | mech/mech.mk | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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) |