From 9710ab93d23fc1afece70df74400c2adffaceca1 Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Wed, 4 Sep 2024 16:46:49 +0200 Subject: [PATCH] sw: Include dependency files only on `MAKECMDGOALS` which need it --- target/snitch_cluster/sw/apps/common.mk | 2 +- target/snitch_cluster/sw/runtime/runtime.mk | 2 +- target/snitch_cluster/sw/tests/tests.mk | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/snitch_cluster/sw/apps/common.mk b/target/snitch_cluster/sw/apps/common.mk index a854307b6..75724da96 100644 --- a/target/snitch_cluster/sw/apps/common.mk +++ b/target/snitch_cluster/sw/apps/common.mk @@ -83,6 +83,6 @@ $(ELF): $(SRCS) $(DEP) $(LD_DEPS) | $($(APP)_BUILD_DIR) $(DUMP): $(ELF) | $($(APP)_BUILD_DIR) $(RISCV_OBJDUMP) $(RISCV_OBJDUMP_FLAGS) $< > $@ -ifneq ($(filter-out clean%,$(MAKECMDGOALS)),) +ifneq ($(filter sw $(APP) $(ALL_OUTPUTS),$(MAKECMDGOALS)),) -include $(DEP) endif diff --git a/target/snitch_cluster/sw/runtime/runtime.mk b/target/snitch_cluster/sw/runtime/runtime.mk index b801aa710..a2b9074f9 100644 --- a/target/snitch_cluster/sw/runtime/runtime.mk +++ b/target/snitch_cluster/sw/runtime/runtime.mk @@ -85,6 +85,6 @@ $(SNRT_DUMP): $(SNRT_LIB) | $(SNRT_BUILDDIR) $(SNRT_DEPS): | $(SNRT_HAL_HDRS) -ifneq ($(filter-out clean%,$(MAKECMDGOALS)),) +ifneq ($(filter sw runtime $(SNRT_OUTPUTS),$(MAKECMDGOALS)),) -include $(SNRT_DEPS) endif diff --git a/target/snitch_cluster/sw/tests/tests.mk b/target/snitch_cluster/sw/tests/tests.mk index a6f3b72f1..482a69d93 100644 --- a/target/snitch_cluster/sw/tests/tests.mk +++ b/target/snitch_cluster/sw/tests/tests.mk @@ -71,6 +71,6 @@ $(TESTS_BUILDDIR)/%.dump: $(TESTS_BUILDDIR)/%.elf | $(TESTS_BUILDDIR) $(TEST_DEPS): | $(SNRT_HAL_HDRS) -ifneq ($(filter-out clean%,$(MAKECMDGOALS)),) +ifneq ($(filter sw tests $(TEST_OUTPUTS),$(MAKECMDGOALS)),) -include $(DEP) endif