From a72e170df8344ac66c799156a744953cb762e08b Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 2 Jan 2024 22:51:35 +0100 Subject: Move 'clean' target to root-level Makefile This target removes the build directory and is thus repository-global. --- Makefile | 4 ++++ mech/mech.mk | 4 ---- 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) -- cgit v1.2.3-70-g09d2