From 72b67832ea538462f72f82f02169d78c99fe258c Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Mon, 16 Feb 2026 17:12:20 +0900 Subject: [PATCH] Makefile: Remove make depend files by make distclean Intermediate files of make depend like .ddc and .dds may remain when make is interrupted. Remove them using make distclean. Signed-off-by: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> --- arch/arm/src/Makefile | 1 + arch/arm64/src/Makefile | 1 + arch/avr/src/Makefile | 1 + arch/hc/src/Makefile | 1 + arch/mips/src/Makefile | 1 + arch/misoc/src/Makefile | 1 + arch/or1k/src/Makefile | 1 + arch/renesas/src/Makefile | 1 + arch/risc-v/src/Makefile | 1 + arch/sim/src/Makefile | 1 + arch/tricore/src/Makefile | 1 + arch/x86/src/Makefile | 1 + arch/x86_64/src/Makefile | 1 + arch/xtensa/src/Makefile | 1 + audio/Makefile | 1 + binfmt/Makefile | 1 + boards/Makefile | 1 + crypto/Makefile | 1 + drivers/Makefile | 1 + fs/Makefile | 1 + graphics/Makefile | 1 + libs/libc/Makefile | 1 + libs/libc/zoneinfo/Makefile | 1 + libs/libdsp/Makefile | 1 + libs/libm/Makefile | 1 + libs/libnx/Makefile | 1 + libs/libxx/Makefile | 1 + mm/Makefile | 1 + net/Makefile | 1 + openamp/Makefile | 1 + pass1/Makefile | 1 + sched/Makefile | 1 + syscall/Makefile | 1 + video/Makefile | 1 + wireless/Makefile | 1 + 35 files changed, 35 insertions(+) diff --git a/arch/arm/src/Makefile b/arch/arm/src/Makefile index 5cb4485b54d..00581e6a1c1 100644 --- a/arch/arm/src/Makefile +++ b/arch/arm/src/Makefile @@ -282,6 +282,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/arm64/src/Makefile b/arch/arm64/src/Makefile index 47ea4379d5e..73cefe97d48 100644 --- a/arch/arm64/src/Makefile +++ b/arch/arm64/src/Makefile @@ -255,6 +255,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/avr/src/Makefile b/arch/avr/src/Makefile index 6356b043c70..d29713af00b 100644 --- a/arch/avr/src/Makefile +++ b/arch/avr/src/Makefile @@ -140,6 +140,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/hc/src/Makefile b/arch/hc/src/Makefile index 8754cc9df26..426a8e98771 100644 --- a/arch/hc/src/Makefile +++ b/arch/hc/src/Makefile @@ -152,6 +152,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/mips/src/Makefile b/arch/mips/src/Makefile index c0aee2ac7ae..f5c2da2d870 100644 --- a/arch/mips/src/Makefile +++ b/arch/mips/src/Makefile @@ -138,6 +138,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/misoc/src/Makefile b/arch/misoc/src/Makefile index c4154e5e7a8..0a95a28cdf2 100644 --- a/arch/misoc/src/Makefile +++ b/arch/misoc/src/Makefile @@ -141,6 +141,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/or1k/src/Makefile b/arch/or1k/src/Makefile index 8a9c9561bdf..b773fd97512 100644 --- a/arch/or1k/src/Makefile +++ b/arch/or1k/src/Makefile @@ -181,6 +181,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/renesas/src/Makefile b/arch/renesas/src/Makefile index f30605a645a..40f421edefd 100644 --- a/arch/renesas/src/Makefile +++ b/arch/renesas/src/Makefile @@ -146,6 +146,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/risc-v/src/Makefile b/arch/risc-v/src/Makefile index 0ac40258a13..be9ea8bdce3 100644 --- a/arch/risc-v/src/Makefile +++ b/arch/risc-v/src/Makefile @@ -254,6 +254,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 8d7bac1f348..9cef07a2ae2 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -529,6 +529,7 @@ distclean:: clean $(Q) if [ -e board/Makefile ]; then \ $(MAKE) -C board distclean ; \ fi + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HOSTSRCS:.c=.ddh)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) $(call DELFILE, config.h) diff --git a/arch/tricore/src/Makefile b/arch/tricore/src/Makefile index be04fce8697..27379269f11 100644 --- a/arch/tricore/src/Makefile +++ b/arch/tricore/src/Makefile @@ -235,6 +235,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/x86/src/Makefile b/arch/x86/src/Makefile index 04eea3e1354..8c3e7704eae 100644 --- a/arch/x86/src/Makefile +++ b/arch/x86/src/Makefile @@ -194,6 +194,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/x86_64/src/Makefile b/arch/x86_64/src/Makefile index 45e1fdc8592..0089fbab5f3 100644 --- a/arch/x86_64/src/Makefile +++ b/arch/x86_64/src/Makefile @@ -224,6 +224,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/xtensa/src/Makefile b/arch/xtensa/src/Makefile index 44de5307bed..a21db44c16b 100644 --- a/arch/xtensa/src/Makefile +++ b/arch/xtensa/src/Makefile @@ -235,6 +235,7 @@ distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_CSRC:.c=.ddc) $(HEAD_ASRC:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/audio/Makefile b/audio/Makefile index d3b50e96f73..a635a920d03 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -71,6 +71,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/binfmt/Makefile b/binfmt/Makefile index 30863b285ec..e88e1a9c27e 100644 --- a/binfmt/Makefile +++ b/binfmt/Makefile @@ -95,6 +95,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/boards/Makefile b/boards/Makefile index 64db0b0337f..9b8a272527f 100644 --- a/boards/Makefile +++ b/boards/Makefile @@ -88,6 +88,7 @@ clean: clean_context $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(CXXSRCS:.cxx=.ddx)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/crypto/Makefile b/crypto/Makefile index be3812ba8df..4c4c59f0bfe 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -117,6 +117,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/drivers/Makefile b/drivers/Makefile index 4bc9fd6f137..72f4a0c4367 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -128,6 +128,7 @@ clean: $(call CLEAN) distclean:: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/fs/Makefile b/fs/Makefile index f1edefed655..342e0ea12e5 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -108,6 +108,7 @@ clean: $(call CLEAN) distclean:: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/graphics/Makefile b/graphics/Makefile index f987e68df39..36da16e98f3 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -131,6 +131,7 @@ clean: $(call CLEAN) distclean: clean clean_context + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/libs/libc/Makefile b/libs/libc/Makefile index 33bcba86d07..21785e97817 100644 --- a/libs/libc/Makefile +++ b/libs/libc/Makefile @@ -225,6 +225,7 @@ distclean:: clean $(Q) $(MAKE) -C zoneinfo distclean BIN=$(BIN) $(Q) $(MAKE) -C elf distclean $(call DELFILE, exec_symtab.c) + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, .depend) $(call DELDIR, bin) $(call DELDIR, kbin) diff --git a/libs/libc/zoneinfo/Makefile b/libs/libc/zoneinfo/Makefile index 746afcc9dc1..671f01e438f 100644 --- a/libs/libc/zoneinfo/Makefile +++ b/libs/libc/zoneinfo/Makefile @@ -120,6 +120,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) $(call DELFILE, .tzunpack) diff --git a/libs/libdsp/Makefile b/libs/libdsp/Makefile index 3d8e1b6b37a..1dc4524d21f 100644 --- a/libs/libdsp/Makefile +++ b/libs/libdsp/Makefile @@ -78,6 +78,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/libs/libm/Makefile b/libs/libm/Makefile index c1fe3c7b49c..7affdf61629 100644 --- a/libs/libm/Makefile +++ b/libs/libm/Makefile @@ -104,6 +104,7 @@ clean: distclean:: clean $(call DELDIR, bin) $(call DELDIR, kbin) + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, .depend) -include bin$(DELIM)Make.dep diff --git a/libs/libnx/Makefile b/libs/libnx/Makefile index 7aab39afada..232c0136bb9 100644 --- a/libs/libnx/Makefile +++ b/libs/libnx/Makefile @@ -267,6 +267,7 @@ clean: distclean: clean $(call DELDIR, bin) $(call DELDIR, kbin) + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, .depend) $(Q) $(MAKE) -C nxfonts -f Makefile.sources distclean EXTRAFLAGS="$(EXTRAFLAGS)" diff --git a/libs/libxx/Makefile b/libs/libxx/Makefile index 65d4e0e9980..617ed23c83d 100644 --- a/libs/libxx/Makefile +++ b/libs/libxx/Makefile @@ -96,6 +96,7 @@ clean: $(call CLEAN) distclean:: clean + $(call DELFILE, $(CXXSRCS:.cxx=.ddx) $(CPPSRCS:.cpp=.ddp)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/mm/Makefile b/mm/Makefile index 53eb8bd72d2..df4ee9db13e 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -128,6 +128,7 @@ clean: distclean:: clean $(call DELDIR, bin) $(call DELDIR, kbin) + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, .depend) -include bin$(DELIM)Make.dep diff --git a/net/Makefile b/net/Makefile index a7258f50ba6..5c58a6c7784 100644 --- a/net/Makefile +++ b/net/Makefile @@ -105,6 +105,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/openamp/Makefile b/openamp/Makefile index 9d298a4dadb..1d9efb707fd 100644 --- a/openamp/Makefile +++ b/openamp/Makefile @@ -65,6 +65,7 @@ clean: $(call CLEAN) distclean:: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/pass1/Makefile b/pass1/Makefile index 4828bff0aaa..5524ea29310 100644 --- a/pass1/Makefile +++ b/pass1/Makefile @@ -60,6 +60,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) $(call DELFILE, *.c) diff --git a/sched/Makefile b/sched/Makefile index 2d743dfd3bb..705cfbfcbfd 100644 --- a/sched/Makefile +++ b/sched/Makefile @@ -82,6 +82,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/syscall/Makefile b/syscall/Makefile index a1256018be4..800c0f5168e 100644 --- a/syscall/Makefile +++ b/syscall/Makefile @@ -120,6 +120,7 @@ endif distclean: clean $(call DELFILE, .context) + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) $(call DELFILE, proxies$(DELIM)*.c) diff --git a/video/Makefile b/video/Makefile index a38fb52eea9..a43f4c63d13 100644 --- a/video/Makefile +++ b/video/Makefile @@ -58,6 +58,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/wireless/Makefile b/wireless/Makefile index f5dcd047933..84bd8243851 100644 --- a/wireless/Makefile +++ b/wireless/Makefile @@ -63,6 +63,7 @@ clean: $(call CLEAN) distclean: clean + $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)) $(call DELFILE, Make.dep) $(call DELFILE, .depend)