From dacd1e01e33033a5d6915d017d9ba1eba81622ff Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 5 Jan 2024 10:05:17 +0100 Subject: Introduce 'debug' target This target will skip generating the artifacts directory. This avoids a bloated build directory while the default target 'all' still generates the artifacts. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7e1f736..12a0137 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ all: $(ARCHIVE) $(ARCHIVE): $(TARGET_DIR) tar --zstd -cf $@ -C $(ARTIFACTS_DIR) $(TARGET_NAME) -$(TARGET_DIR): doc mech +$(TARGET_DIR): debug rm -rf $@ mkdir -p $@ install -Dm 644 $(BUILD_DIR)/doc/soundbox-documentation.pdf $@ @@ -21,6 +21,8 @@ $(TARGET_DIR): doc mech install -Dm 644 $(BUILD_DIR)/mech/pcb_case/tolerance_tests.gcode $@ install -Dm 644 $(BUILD_DIR)/mech/pcb_case/tolerance_tests.stl $@ +debug: doc mech + .PHONY: clean clean: rm -rf $(BUILD_DIR) -- cgit v1.2.3-70-g09d2