summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-01-05 10:05:17 +0100
committerxengineering <me@xengineering.eu>2024-01-05 10:07:04 +0100
commitdacd1e01e33033a5d6915d017d9ba1eba81622ff (patch)
treebc3f9ce2663e4f179231f8ae9931ea202441b2f5
parent70140597920ef71896283a5ad18538fed5ed99c9 (diff)
downloadsoundbox-dacd1e01e33033a5d6915d017d9ba1eba81622ff.tar
soundbox-dacd1e01e33033a5d6915d017d9ba1eba81622ff.tar.zst
soundbox-dacd1e01e33033a5d6915d017d9ba1eba81622ff.zip
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.
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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)